ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Two totals in one cell shown in two separate columns (https://www.excelbanter.com/excel-discussion-misc-queries/242518-two-totals-one-cell-shown-two-separate-columns.html)

something68

Two totals in one cell shown in two separate columns
 
Column A, row 8 shows: A, S
Column A, row 9 show: 1.0, 7.0

I would like Column M, row 9 to show: 1 (total of all "A" shown in row 8)
I would like Column O, row 9 to show: 7 (total of all "S" shown in row 8)



Eduardo

Two totals in one cell shown in two separate columns
 
Hi,
I assume your information is from column A to L change it to fit your needs

in column M enter

=SUMPRODUCT(--(A8:L8="A"),A9:L9)

in column O enter

=SUMPRODUCT(--(A8:L8="S"),A9:L9)

if this helps please click yes, thanks

"something68" wrote:

Column A, row 8 shows: A, S
Column A, row 9 show: 1.0, 7.0

I would like Column M, row 9 to show: 1 (total of all "A" shown in row 8)
I would like Column O, row 9 to show: 7 (total of all "S" shown in row 8)




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

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