IF and VLOOKUP

  • Thread starter Thread starter Teri
  • Start date Start date
T

Teri

Not sure if I'm using the correct functions, but here is my formula:

=IF(VLOOKUP(E46,'SVC LVL'!A$1:D$29,4,FALSE)>F46,"Yes","No")

E46 = Service Level
A4:D29 is the table of codes, Column A is the code, Column D is the
guaranteed number of days
F46 = Transit Days

The answer I am looking for: if F46 (Transit Days) is greater than the
corresponding number of days in the VLOOKUP, the answer should be No.
Otherwise, the answer should be Yes.
 
Whoops! The codes are in A1:D49. The problem I'm getting is:

Example: 3D = 6

When I use my formula and a 3D shipment comes up with 6 days, it says No.
 
Well, perhaps the 6 in your table is really just a text value rather
than an actual number. You could try this to see if it improves
things:

=IF(VLOOKUP(E46,'SVC LVL'!A$1:D$29,4,FALSE)+0>=F46,"Yes","No")

The +0 converts a text number into a proper number.

Hope this helps.

Pete
 
OMG!! That's it!! Thank you so, so much :)

Pete_UK said:
Well, perhaps the 6 in your table is really just a text value rather
than an actual number. You could try this to see if it improves
things:

=IF(VLOOKUP(E46,'SVC LVL'!A$1:D$29,4,FALSE)+0>=F46,"Yes","No")

The +0 converts a text number into a proper number.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top