Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
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. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
Well, I think you should change the A$1 in the formula to A$4, and the
to =, but then it should do what you want it to do. Hope this helps. Pete On Sep 18, 3:14*pm, Teri wrote: 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. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
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. "Roger Govier" wrote: Hi Teri Apart from the fact that your formula says A1:D49 and you say the codes are in A4:D49, it looks fine to me. What problem are you getting? -- Regards Roger Govier "Teri" wrote in message ... 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. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
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 On Sep 18, 4:19*pm, Teri wrote: 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. "Roger Govier" wrote: Hi Teri Apart from the fact that your formula says A1:D49 and you say the codes are in A4:D49, it looks fine to me. What problem are you getting? -- Regards Roger Govier "Teri" wrote in message ... 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.- Hide quoted text - - Show quoted text - |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
OMG!! That's it!! Thank you so, so much :)
"Pete_UK" wrote: 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 On Sep 18, 4:19 pm, Teri wrote: 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. "Roger Govier" wrote: Hi Teri Apart from the fact that your formula says A1:D49 and you say the codes are in A4:D49, it looks fine to me. What problem are you getting? -- Regards Roger Govier "Teri" wrote in message ... 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.- Hide quoted text - - Show quoted text - |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF and VLOOKUP
You're welcome, Teri - thanks for feeding back.
Pete "Teri" wrote in message ... OMG!! That's it!! Thank you so, so much :) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |