Automatically include added rows in complex formula?

Joined
Jul 27, 2017
Messages
24
Hi all,

Hoping someone can answer this question for me. I have a dashboard on one tab and a raw data sheet on the other. The dashboard has COUNTIFS() formulas pulling data from the raw data sheet, but my issue arises from when I add rows to raw data sheet and the COUNTIFS() do not include these new rows. How can I rewrite my COUNTIFS() formula to automatically recalculate whenever I add in new rows to the raw data sheet?

For Example:
If I have data in rows 2-5 and my formula is as follows:
=COUNTIFS($A$2:$A$5,"Yes",$B$2:$B$5,"Blue")+COUNTIFS($A$2:$A$5,"Yes",$C$2:$C$5,"Green")+COUNTIFS($A$2:$A$5,"Yes",$D$2:$D$5,"Yellow")

When I add in data to row 6 how will I make it so that my COUNTIFS() function will include that data in the count as well?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Your Criteria range has been restricted to A2:A5, B2:B5, C2:C5 and D2:D5. If you want to include rows below five, stipulate the entire columns:
Code:
=COUNTIFS(A:A,"Yes",B:B,"Blue")+COUNTIFS(A:A,"Yes",C:C,"Green")+COUNTIFS(A:A,"Yes",D:D,"Yellow")
 
Upvote 0
Hey Beyond_avarice,

Thanks for the idea, I appreciate it! My only issue is that I have to start the range at row 2, so I can't have it do a count for the entire column. Any ideas on how to rewrite it so that it only includes added rows beneath the last row?

Thanks!
 
Upvote 0
If Row 1 will never contain the "criteria1"(arg2) or "criteria2"(arg4). Then it wont matter if you include that row.
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,604
Members
449,321
Latest member
syzer

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