#1   Report Post  
akaramarkovic
 
Posts: n/a
Default Vlookup


Hi,
I'm looking to do a vlookup in a sales report that includes subtotals.
The formula i have come up with thus far is the following:
=VLOOKUP("1822 Total",'[Period 6 sales by
SKU.xls]MFGRP-34_MFR-43152_20050522-200'!$B$29:$I$5643,8,FALSE).
The only problem with this formula is that I have to mannually change
the "____ Total" part for each corresponding store. Thus I have to
input "122 Total" for store 122 in the worksheet and so on. The 122
portion of the part in quotations is foudn in another cell on the
workseet so I was hoping to program the formula to pick up the store
number automatically from the cell somethign along the lines of
=VLOOKUP(B4+" Total",'[Period 6 sales by
SKU.xls]MFGRP-34_MFR-43152_20050522-200'!$B$29:$I$5643,8,FALSE). Can
you please tell me if this is possible and offer any suggestions.
Thank you.


--
akaramarkovic
------------------------------------------------------------------------
akaramarkovic's Profile: http://www.excelforum.com/member.php...o&userid=24801
View this thread: http://www.excelforum.com/showthread...hreadid=383584

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default


You were VERY close:

=VLOOKUP(B4+" Total",'[Period 6 sales by
SKU.xls]MFGRP-34_MFR-43152_20050522-200'!$B$29:$I$5643,8,FALSE).

Should be:
=VLOOKUP(B4&" Total",'[Period 6 sales by
SKU.xls]MFGRP-34_MFR-43152_20050522-200'!$B$29:$I$5643,8,FALSE).

Reason:
The + sign is an arithmetic operator
The & sign is a text concatenator

Example:
="any"&"thing" evaluates to "anything"
while ="any"+"thing" evaluate to #value

Does that help?

Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=383584

  #4   Report Post  
akaramarkovic
 
Posts: n/a
Default


Ron,
You helped me score some major brownie points with my boss!!!
Best regards,
Aleks Karamarkovic


--
akaramarkovic
------------------------------------------------------------------------
akaramarkovic's Profile: http://www.excelforum.com/member.php...o&userid=24801
View this thread: http://www.excelforum.com/showthread...hreadid=383584

  #5   Report Post  
Ron Coderre
 
Posts: n/a
Default


You were mostly there, already. I'm glad I could help.

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=383584

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 10:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"