ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Adding Up! (https://www.excelbanter.com/excel-discussion-misc-queries/93922-adding-up.html)

ExcelBob

Adding Up!
 

In cells A1:AH1 I have some numbers and some blanks
In cells A2:AH2 I have a pick list of letters A, S, B

When the user selects the "A" from the drop down list I want a formula
which will add the totals of the cells in A1:AH1

Any ideas?

Thanks
ExcelBob


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile: http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=551845


Bernard Liengme

Adding Up!
 
Look in Help for SUMIF
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"ExcelBob" wrote in
message ...

In cells A1:AH1 I have some numbers and some blanks
In cells A2:AH2 I have a pick list of letters A, S, B

When the user selects the "A" from the drop down list I want a formula
which will add the totals of the cells in A1:AH1

Any ideas?

Thanks
ExcelBob


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile:
http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=551845





Adding Up!
 
Hi

Try this, presuming your drop-down list is in A3:
=SUMPRODUCT(--(A2:AH2=A3),--(A1:AH1))

Andy.

"ExcelBob" wrote in
message ...

In cells A1:AH1 I have some numbers and some blanks
In cells A2:AH2 I have a pick list of letters A, S, B

When the user selects the "A" from the drop down list I want a formula
which will add the totals of the cells in A1:AH1

Any ideas?

Thanks
ExcelBob


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile:
http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=551845





All times are GMT +1. The time now is 07:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com