Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Formula

Status
Not open for further replies.

techie99

Programmer
Apr 24, 2003
60
0
0
US
I need an Excel formula that adds up specific cells in column H that meet the following conditions. If the cell in column D = 100 or 800 AND if the cell in column G does not equal "CA", "FML", "FMU" or "ULW".

A B C D E F G H I J K
100 CA 2
100 OT 10
900 1R 14
800 FMU 17

So, in my example, the total of column H would be 10

So far I have
=SUMIF(D6:D30,100,H6:H30) + SUMIF(D6:D30,800,H6:H30)

This accomplishes the first objective to only count cells with criteria matching column D, but this doesn't take into effect the criteria for column G. Any idea how to do this? Thanks in advance for all your help.
 
Could create an entry in Column I with the following formula:


=IF(AND(OR(D6=100,D6=800),G6<>"CA",G6<>"FML",G6<>"FMU",G6<>"ULW"),H6,0)

apply it to each row and SUM it at the end.

Not the neatest, but the first thought to pop into my head.
 
Thanks for the suggestions, I'll give them a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top