Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"