ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need a Lookup/Sumif Combo Formula (https://www.excelbanter.com/excel-worksheet-functions/182592-need-lookup-sumif-combo-formula.html)

LSully

Need a Lookup/Sumif Combo Formula
 
I have 4 columns that contain amounts which can be the same in all four
columns, they can be different and can also be blank. If they are the same,
I want the amount only once but if they are different, I want to sum only the
amounts that are different. Blank cells can be ignored.

A B C D
500.00 500.00 500.00 = this would return value
of 500.00
100.00 100.00 200.00 200.00 = this would return value of
300.00




Teethless mama

Need a Lookup/Sumif Combo Formula
 
=SUMPRODUCT((A1:D1<"")/COUNTIF(A1:D1,A1:D1&""),A1:D1)

"LSully" wrote:

I have 4 columns that contain amounts which can be the same in all four
columns, they can be different and can also be blank. If they are the same,
I want the amount only once but if they are different, I want to sum only the
amounts that are different. Blank cells can be ignored.

A B C D
500.00 500.00 500.00 = this would return value
of 500.00
100.00 100.00 200.00 200.00 = this would return value of
300.00





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

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