Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default #N/A error with VLOOKUP function

I am trying to get the highest value in one column and return the
corresponding value of the same row using the following function:

=VLOOKUP(MAX(D5;D11;D17;D22;D28;D33;D38;D44);A1:D4 4;2;FALSE)

But I am receiving this error: #N/A

After checking the error, there is something wrong with the 'col_index_num'
part of the formula. This number should refer to column 'B' in my sheet.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default #N/A error with VLOOKUP function

Hi,

I'm struggling to understand you formula so perhaps this will help

=INDEX(B:B,MATCH(MAX(A:A),A:A,0))

Finds the maximum value in column A and returns corresponding value in
Column B. It looks like you use ; and not , so make necessary changes.

Mike

Mike

"Amer" wrote:

I am trying to get the highest value in one column and return the
corresponding value of the same row using the following function:

=VLOOKUP(MAX(D5;D11;D17;D22;D28;D33;D38;D44);A1:D4 4;2;FALSE)

But I am receiving this error: #N/A

After checking the error, there is something wrong with the 'col_index_num'
part of the formula. This number should refer to column 'B' in my sheet.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default #N/A error with VLOOKUP function

Here is the new formula and the result is '0' !!!

=INDEX(B:B;MATCH(MAX(D5;D11;D17;D22;D28;D33;D38;D4 4);D:D;0))

Note that I am using Excel 2007. It changes the ',' to ';'.

(D5;D11;D17;D22;D28;D33;D38;D44) are selected cells in column 'D'. No need
for Excel to check the whole column.

Thanks for the help.

"Mike H" wrote:

Hi,

I'm struggling to understand you formula so perhaps this will help

=INDEX(B:B,MATCH(MAX(A:A),A:A,0))

Finds the maximum value in column A and returns corresponding value in
Column B. It looks like you use ; and not , so make necessary changes.

Mike

Mike

"Amer" wrote:

I am trying to get the highest value in one column and return the
corresponding value of the same row using the following function:

=VLOOKUP(MAX(D5;D11;D17;D22;D28;D33;D38;D44);A1:D4 4;2;FALSE)

But I am receiving this error: #N/A

After checking the error, there is something wrong with the 'col_index_num'
part of the formula. This number should refer to column 'B' in my sheet.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default #N/A error with VLOOKUP function

=INDEX(B5:B44;MATCH(MAX(D5;D11;D17;D22;D28;D33;D38 ;D44);D5:D44;0))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Amer" wrote in message
...
Here is the new formula and the result is '0' !!!

=INDEX(B:B;MATCH(MAX(D5;D11;D17;D22;D28;D33;D38;D4 4);D:D;0))

Note that I am using Excel 2007. It changes the ',' to ';'.

(D5;D11;D17;D22;D28;D33;D38;D44) are selected cells in column 'D'. No need
for Excel to check the whole column.

Thanks for the help.

"Mike H" wrote:

Hi,

I'm struggling to understand you formula so perhaps this will help

=INDEX(B:B,MATCH(MAX(A:A),A:A,0))

Finds the maximum value in column A and returns corresponding value in
Column B. It looks like you use ; and not , so make necessary changes.

Mike

Mike

"Amer" wrote:

I am trying to get the highest value in one column and return the
corresponding value of the same row using the following function:

=VLOOKUP(MAX(D5;D11;D17;D22;D28;D33;D38;D44);A1:D4 4;2;FALSE)

But I am receiving this error: #N/A

After checking the error, there is something wrong with the
'col_index_num'
part of the formula. This number should refer to column 'B' in my
sheet.



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
Vlookup Error #N/A Abdul Excel Discussion (Misc queries) 4 November 4th 08 12:45 PM
VLOOKUP/IF FUNCTION ERROR WHEN PULLING FROM A LIST - Please Help sbickley Excel Discussion (Misc queries) 2 October 24th 08 07:53 PM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup Function returning #N/A error for two entries rtjeter Excel Discussion (Misc queries) 2 August 2nd 06 04:58 PM
Vlookup & Lookup function error Beginner Excel Worksheet Functions 9 January 11th 05 12:37 AM


All times are GMT +1. The time now is 10:41 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"