[TABLE="width: 1124"]
<colgroup><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Salesman #[/TD]
[TD]Responsible[/TD]
[TD]Vendor / Invoice #:[/TD]
[TD]Description:[/TD]
[TD]Date:[/TD]
[TD]Average Cost[/TD]
[TD]Price:[/TD]
[TD]Vendor #[/TD]
[TD]Sell Price:[/TD]
[/TR]
[TR]
[TD]NWO[/TD]
[TD]NWO[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
[TR]
[TD]219[/TD]
[TD]NWO[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
[TR]
[TD]NWO[/TD]
[TD]219[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
</tbody>[/TABLE]
I have a large table that I am sure I can clean up in many regards, but currently I am trying to simplify the above into one formula.
The one I am currently using is;
=SUMIFS(November!$L$19:$L$2013,November!$D$19:$D$2013,"NWO")+SUMIFS(November!$L$19:$L$2013,November!$E$19:$E$2013,"NWO")
Its on a separate page on a different chart, I plot this data monthly so this is an example for November. This formula works great with one exception, When both columns are populated with "NWO" is doubles that value, so the above example shoudl total 300, but excel shows it as 400.
How can I eliminate the double count? Or how can I write a formula that sums the sales column, if either salesperson or responsible salesperson contains NWO. (Very rarely will the data contain the same value, but I don't want to have to go back and sort line by line each month)
I know there is a cleaner solution, I just can't find it! Thanks in advanced.
<colgroup><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Salesman #[/TD]
[TD]Responsible[/TD]
[TD]Vendor / Invoice #:[/TD]
[TD]Description:[/TD]
[TD]Date:[/TD]
[TD]Average Cost[/TD]
[TD]Price:[/TD]
[TD]Vendor #[/TD]
[TD]Sell Price:[/TD]
[/TR]
[TR]
[TD]NWO[/TD]
[TD]NWO[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
[TR]
[TD]219[/TD]
[TD]NWO[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
[TR]
[TD]NWO[/TD]
[TD]219[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$100.00[/TD]
[/TR]
</tbody>[/TABLE]
I have a large table that I am sure I can clean up in many regards, but currently I am trying to simplify the above into one formula.
The one I am currently using is;
=SUMIFS(November!$L$19:$L$2013,November!$D$19:$D$2013,"NWO")+SUMIFS(November!$L$19:$L$2013,November!$E$19:$E$2013,"NWO")
Its on a separate page on a different chart, I plot this data monthly so this is an example for November. This formula works great with one exception, When both columns are populated with "NWO" is doubles that value, so the above example shoudl total 300, but excel shows it as 400.
How can I eliminate the double count? Or how can I write a formula that sums the sales column, if either salesperson or responsible salesperson contains NWO. (Very rarely will the data contain the same value, but I don't want to have to go back and sort line by line each month)
I know there is a cleaner solution, I just can't find it! Thanks in advanced.