Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The following formula returns WPM or CPM and other 3 letter combinations.
=IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I cant get it to return anything beginning with €śW€ť. =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Your VLOOKUP has omitted the last item which means you are not searching for
an exact match. In the case where an exact match is not found it will find the next lowest available closest to your search item. When this is the case your column 1 range AF3:AK10 MUST be sorted. If this range is not sorted or you always want an exact match then use this =VLOOKUP(AE15,AF3:AK10,2,FALSE) "Warren Easton" wrote: The following formula returns WPM or CPM and other 3 letter combinations. =IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I cant get it to return anything beginning with €śW€ť. =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This works, thanks for all your help.
-- Regards Warren "Dennis" wrote: Your VLOOKUP has omitted the last item which means you are not searching for an exact match. In the case where an exact match is not found it will find the next lowest available closest to your search item. When this is the case your column 1 range AF3:AK10 MUST be sorted. If this range is not sorted or you always want an exact match then use this =VLOOKUP(AE15,AF3:AK10,2,FALSE) "Warren Easton" wrote: The following formula returns WPM or CPM and other 3 letter combinations. =IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I cant get it to return anything beginning with €śW€ť. =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Works okay for me.
See if this works as an array formula =VLOOKUP(AE15,TRIM(AF3:AK10),2,FALSE) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Warren Easton" wrote in message ... The following formula returns WPM or CPM and other 3 letter combinations. =IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I can't get it to return anything beginning with "W". =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Bob,
When I have trm in the formula it returns VALUE, but it works if I leave it out. Thanks for your help ounce again. -- Regards Warren "Bob Phillips" wrote: Works okay for me. See if this works as an array formula =VLOOKUP(AE15,TRIM(AF3:AK10),2,FALSE) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Warren Easton" wrote in message ... The following formula returns WPM or CPM and other 3 letter combinations. =IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I can't get it to return anything beginning with "W". =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I was trying to catch 2 things at once there, but glad you are sorted.
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Warren Easton" wrote in message ... Bob, When I have trm in the formula it returns VALUE, but it works if I leave it out. Thanks for your help ounce again. -- Regards Warren "Bob Phillips" wrote: Works okay for me. See if this works as an array formula =VLOOKUP(AE15,TRIM(AF3:AK10),2,FALSE) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Warren Easton" wrote in message ... The following formula returns WPM or CPM and other 3 letter combinations. =IF(AG18="Chainlink","C","W")&IF(AG19="Galv","G"," P")&IF(AG20="Light","L",IF('Start Sheet'!I34="Medium","M","H")) All the combinations work and return a 3 letter combination but when I try to get the formula below to return a price from the array I can't get it to return anything beginning with "W". =VLOOKUP(AE15,AF3:AK10,2) AE15 is the 3 Letter combination. AF3:AK10 is an array of Prices. The second column is the price I want -- Regards Warren |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |