Multiple IF and AND Statement - Need Help!

londoneye001

Board Regular
Joined
Sep 12, 2014
Messages
56
Hi - I was wondering if one of the Excel guru can correct the below formula for me? Formula it self is simple but even after the false part of the if statement I need the formula to continue to the next if statement so that next criteria can be matched. If there is a better way to do the allocation, I'm open to that as well.

Many Thanks,
Sid


=IF(AND(J4="Q1", SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"1")=0), SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"1")/13, SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"1")*AA4), IF(AND(J4="Q2", SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"2")=0), SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"2")/13, SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"2")*AA4), IF(AND(J4="Q3", SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"3")=0), SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"3")/13, SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"3")*AA4), IF(AND(J4="Q4", SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"4")=0), SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"4")/13, SUMIFS(CF.Sales,CF.Division,$H4,CF.ChainCD,$A4,CF.Period,"4")*AA4)
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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
Back
Top