Vlookup with IF

Pumperkin

Board Regular
Joined
Jan 24, 2019
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to do a Vlookup with IF, but just get a 0 answer rather than the result of the VLOOKUP.

I am trying to find (from a long list) the most expensive product in stock (the list includes in stock and sold items). I have a MAX(IF) array in cell K7 to find the highest value and am trying to find which product has that value.

The data itself is on a different sheet - the stock status is in Column 13 with the product details in Column 16 (however, the VLOOKUP starts in column 6 hence the number shifting).

I have the following formula:

Code:
=IF(Table3[Despatch Time]="Not Despatched", VLOOKUP(K7, Table3[[Cost]:[Model/Memory]], 11, ),)

Any ideas?
 
despatch time filed has various TEXT entries NOT time values ? and the TEXT "NOT DEPATCHED"
should that be
'NOT DESPATCHED"
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
despatch time filed has various TEXT entries NOT time values ? and the TEXT "NOT DEPATCHED"
should that be
'NOT DESPATCHED"

Hi, Yes it should be "Not Despatched". This column has either a figure in days, or "Not Despatched".

I managed to get it to work - realised it's an ARRAY (Ctrl-Shift-Enter) oops...

Thanks for all your help :D
 
Upvote 0
yes, sorry I'm on 365 on a mac and that automatically works out arrays now , so doesnt need the {} as it just works, should have remembered
 
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top