LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default clarification on VLOOKUP

Here is another fun little formula that might be easier than a vlookup.... I
will

=INDEX(Result Array,MATCH(Record,Record Array,0))

SAMPLE DATA:
A B C G
H
???COGS???
1 SKUCD SKU NM (Insert Formula) SKUCD COGS
2 GFS123456 Onions BK123
$14.50
3 BK123 Pepers ABC987
$13.25
4 ABC987 Cheese GFS123456
$12.75

Cell C2 type the following formula: =INDEX(H:H,MATCH(A2,G:G,0))
Cell C3 type the following formula: =INDEX(H:H,MATCH(A3,G:G,0))
Cell C4 type the following formula: =INDEX(H:H,MATCH(A4,G:G,0))

Hope this helps...

--
GS


"Dave Peterson" wrote:

If your table is wide enough (13 columns--one for the key and 12 for each
month???), then you may want:

month(today())+1
to avoid bringing back column 1 of the table array.

But that doesn't explain the error.

If the error you're seeing is #n/a, maybe you don't have a match for that
lookup_value in the leftmost column of the table array.

Debra Dalgleish has lots of notes:
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://contextures.com/xlFunctions02.html#Trouble

Hamsa wrote:

VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

If I use MONTH(TODAY()) in place of col_index_num, I am getting an error.

I have also tried TODAY() in cell A1, MONTH(A1) in cell B1 and
B1 in place of col_index_num. I still get an error.

Is it allowed ? Is there an alternative?

Thanks in advance for any valuable guidance
Hamsa


--

Dave Peterson

 
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
Clarification pmayne181 Excel Discussion (Misc queries) 1 December 2nd 08 12:56 PM
countif clarification LInda Excel Discussion (Misc queries) 9 March 31st 06 12:55 AM
If Then Statement Clarification Joanne Excel Discussion (Misc queries) 3 January 30th 06 09:26 PM
Beyond VLOOKUP Clarification nebb Excel Worksheet Functions 2 July 3rd 05 10:30 PM
If and Dates Clarification wal50 Excel Worksheet Functions 4 January 4th 05 06:31 PM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"