Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
sum & VLOOKUP
Hi,
this is the sheet (A1="name"; A2="A ltd"; ... ; B1="jan"; ... ... ...): name jan feb Altd 5 8 Bltd 10 9 Cltd 7 11 In cells AA21 this formula (9 the result) VLOOKUP(A20,A1:C4,3,FALSE)) where AA20 = "Bltd". Now the problem: how can put in AA22 the SUM of "name" using VLOOKUP? (no code VBA) Example: if AA20 ="B ltd" the AA22 will be the sum of 10 and 9 = 19 Thanks in advance M. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
sum & VLOOKUP
Hi
AA22=SUMPRODUCT((A1:A4=AA20)*(B1:B4+C1:C4)) or AA22=SUMIF(A1:A4,AA20,B1:C4)) Arvi Laanemets "Mire" wrote in message ... Hi, this is the sheet (A1="name"; A2="A ltd"; ... ; B1="jan"; ... ... ...): name jan feb Altd 5 8 Bltd 10 9 Cltd 7 11 In cells AA21 this formula (9 the result) VLOOKUP(A20,A1:C4,3,FALSE)) where AA20 = "Bltd". Now the problem: how can put in AA22 the SUM of "name" using VLOOKUP? (no code VBA) Example: if AA20 ="B ltd" the AA22 will be the sum of 10 and 9 = 19 Thanks in advance M. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
sum & VLOOKUP
Mire,
One way =SUM(OFFSET(INDIRECT("B"&MATCH(AA20,A1:A4,0)),0,0, 1,12)) this will sum the numbers in 12 columns starting from colB of the matching row. HTH Cecil "Mire" wrote in message ... Hi, this is the sheet (A1="name"; A2="A ltd"; ... ; B1="jan"; ... ... ...): name jan feb Altd 5 8 Bltd 10 9 Cltd 7 11 In cells AA21 this formula (9 the result) VLOOKUP(A20,A1:C4,3,FALSE)) where AA20 = "Bltd". Now the problem: how can put in AA22 the SUM of "name" using VLOOKUP? (no code VBA) Example: if AA20 ="B ltd" the AA22 will be the sum of 10 and 9 = 19 Thanks in advance M. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
sum & VLOOKUP
Very good!
Thanks to Cecil and Arvi "Cecilkumara Fernando" ha scritto nel messaggio ... Mire, One way =SUM(OFFSET(INDIRECT("B"&MATCH(AA20,A1:A4,0)),0,0, 1,12)) this will sum the numbers in 12 columns starting from colB of the matching row. HTH Cecil "Mire" wrote in message ... Hi, this is the sheet (A1="name"; A2="A ltd"; ... ; B1="jan"; ... ... ...): name jan feb Altd 5 8 Bltd 10 9 Cltd 7 11 In cells AA21 this formula (9 the result) VLOOKUP(A20,A1:C4,3,FALSE)) where AA20 = "Bltd". Now the problem: how can put in AA22 the SUM of "name" using VLOOKUP? (no code VBA) Example: if AA20 ="B ltd" the AA22 will be the sum of 10 and 9 = 19 Thanks in advance M. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If (Vlookup 0) working, but what if Vlookup cell does not exist | Excel Worksheet Functions | |||
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 | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |