Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
With Col A&B blank, I have the following in column C
AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
try
=vlookup(left(trim(c2),2),$F$2:$G$63,2,0) -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... With Col A&B blank, I have the following in column C AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Thanks for your reply - I'm getting #N/A
dp "Don Guillett" wrote: try =vlookup(left(trim(c2),2),$F$2:$G$63,2,0) -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... With Col A&B blank, I have the following in column C AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
#5
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() If desired, send your wb and this email to my address below -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... Correction I copied the formula down some rows (past the #N/A) and only the rows with 2 letters are ok. The rows with one letter have a space or two after if that makes a difference. "dp" wrote: Thanks for your reply - I'm getting #N/A dp "Don Guillett" wrote: try =vlookup(left(trim(c2),2),$F$2:$G$63,2,0) -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... With Col A&B blank, I have the following in column C AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
#6
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Don - I have e-mailed this to you for your perusal. Thanks for your time.
dp "Don Guillett" wrote: If desired, send your wb and this email to my address below -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... Correction I copied the formula down some rows (past the #N/A) and only the rows with 2 letters are ok. The rows with one letter have a space or two after if that makes a difference. "dp" wrote: Thanks for your reply - I'm getting #N/A dp "Don Guillett" wrote: try =vlookup(left(trim(c2),2),$F$2:$G$63,2,0) -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... With Col A&B blank, I have the following in column C AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
#7
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Your email solution
=VLOOKUP(LEFT(TRIM(C2),FIND(" ",C2)-1),$F$2:$G$63,2,0) works great. Thanks again for your time. "Don Guillett" wrote: If desired, send your wb and this email to my address below -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... Correction I copied the formula down some rows (past the #N/A) and only the rows with 2 letters are ok. The rows with one letter have a space or two after if that makes a difference. "dp" wrote: Thanks for your reply - I'm getting #N/A dp "Don Guillett" wrote: try =vlookup(left(trim(c2),2),$F$2:$G$63,2,0) -- Don Guillett Microsoft MVP Excel SalesAid Software "dp" wrote in message ... With Col A&B blank, I have the following in column C AL FEE AM SERVICE B SERVICE C SERVICE I need to use the letter(s) preceeding fee/service in a vlookup formula So my formula in cell a2 =trim(left(c2,2)) will give me just the letter(s) The array for lookup is in cells F2:G63 So my formula in cell b2 =vlookup(a2,$F$2:$G$63,2,false) I wind up with this: ColA ColB ColC AL 6 AL Fee AM 6 AM Service B 1 B Service C 2 C Service Can I combine these two formulas in one cell so it will find the letter(s), then lookup the code? I later use the numeric codes to sort and get subtotals. Hope this make sense. dp |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combine 2 formulas | Excel Worksheet Functions | |||
Combine Formulas | Excel Discussion (Misc queries) | |||
how to combine formulas to......... | Excel Worksheet Functions | |||
Combine 2 formulas | Excel Worksheet Functions | |||
Help combine 2 formulas into 1 | Excel Worksheet Functions |