Excel formula IF statement with SUMIF statement HELP

andycreber

Board Regular
Joined
May 20, 2010
Messages
61
Hi there, I am trying to write a formula that is a IF statement with 2 different SUMIF criteria based on the true of false result but the false default is overriding the true.

[FONT=Arial, Helvetica, sans-serif]my formula that I am using but it does not wotk the way I want it too:

[/FONT]=IF(A63=B63,SUMIF('Smarty Download'!C:C,'Donations - Full Listing'!A63,'Smarty Download'!P:P),SUMIF('Smarty Download'!C:C,'Donations - Full Listing'!B63,'Smarty Download'!P:P))

in cell A63 I have text = abc company

in cell b63 i have text = xyz company

column C i have text various text that could be abc company or xyz company

I want to sum if a63 = b63 then add up the values in column P for that name in a63 or add up the value in column P if the name in b63 is found in column C

But i don't want dupplicate figures if the names both match.

Is there another way to write this formula?

thanks in advance
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

RasGhul

Well-known Member
Joined
Jul 15, 2016
Messages
609
Hi Andy,

Just to clarify your goal;

If the Company in A63 appears in column C, A63 wins & sumif column $p:$p against A63, If FALSE sumif against B63?

=IF(COUNTIFS('Smarty Download'!C:C,'Donations - Full Listing'!A63)>0,SUMIFS('Smarty Download'!P:P,'Smarty Download'!C:C,'Donations - Full Listing'!A63),SUMIFS('Smarty Download'!P:P,'Smarty Download'!C:C,'Donations - Full Listing'!B63))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,265
Messages
5,600,605
Members
414,393
Latest member
Vignesh Mechz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top