IF and VLOOKUP

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.
 
T

Teri

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.
 
P

Pete_UK

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
 
T

Teri

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

Similar Threads

IF statement in formula 7
Combining IF Statement and Vlookup 0
IF VLOOKUP 3
Vlookup help 2
Multiple conditions 2
Sum Vlookup where there are blanks 1
VLOOKUP & IF used with > or < 7
VLOOKUP returning #N/A result 2

Top