Formulas for Dashboard to calculate "ALL"

Freeman2022

New Member
Joined
Nov 3, 2021
Messages
41
Office Version
  1. 365
Platform
  1. Windows
I'm using excel 365

I’m in the process of making a dashboard..

I would like to calculate the total cases by Year and by Customer Name

I will use combo boxes for both, or maybe radio buttons for the year.

I’m having trouble with the formulas because of the “ALL” Years and “ALL” Customers.

Any suggestions???
 

Attachments

  • Formula Page - Dashboard - HELP.PNG
    Formula Page - Dashboard - HELP.PNG
    67.5 KB · Views: 10

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi, you could try something like this.

Book1
ABCDEF
1YearCustomerCasesYear drop down >All Years
22022ADFSFScustomer drop down >All Customers
32019BDFDFormula >5
42022DD
52022ED
62012ASA
Sheet1
Cell Formulas
RangeFormula
F3F3=COUNTIFS(A:A,IF(F1="All Years",">0",F1),B:B,IF(F2="All Customers","*",F2))
 
Upvote 0
Hi, you could try something like this.

Book1
ABCDEF
1YearCustomerCasesYear drop down >All Years
22022ADFSFScustomer drop down >All Customers
32019BDFDFormula >5
42022DD
52022ED
62012ASA
Sheet1
Cell Formulas
RangeFormula
F3F3=COUNTIFS(A:A,IF(F1="All Years",">0",F1),B:B,IF(F2="All Customers","*",F2))
THANK YOU!!!!! That works!!!!!
 
Upvote 0
Hi, you could try something like this.

Book1
ABCDEF
1YearCustomerCasesYear drop down >All Years
22022ADFSFScustomer drop down >All Customers
32019BDFDFormula >5
42022DD
52022ED
62012ASA
Sheet1
Cell Formulas
RangeFormula
F3F3=COUNTIFS(A:A,IF(F1="All Years",">0",F1),B:B,IF(F2="All Customers","*",F2))
Ok wait, that works if I select ALL, now how would I incorporate that into if I only selected 2019? or 2020?
 
Upvote 0
now how would I incorporate that into if I only selected 2019? or 2020?

Hi, works as is for me - does it not for you?

Perhaps some sample data that demonstrates the problem will help.

Book1
ABCDEF
1YearCustomerCasesYear drop down >2022
22022ADFSFScustomer drop down >All Customers
32019BDFDFormula >3
42022DD
52022ED
62012ASA
Sheet1
Cell Formulas
RangeFormula
F3F3=COUNTIFS(A:A,IF(F1="All Years",">0",F1),B:B,IF(F2="All Customers","*",F2))
 
Upvote 0
Hi, works as is for me - does it not for you?

Perhaps some sample data that demonstrates the problem will help.

Book1
ABCDEF
1YearCustomerCasesYear drop down >2022
22022ADFSFScustomer drop down >All Customers
32019BDFDFormula >3
42022DD
52022ED
62012ASA
Sheet1
Cell Formulas
RangeFormula
F3F3=COUNTIFS(A:A,IF(F1="All Years",">0",F1),B:B,IF(F2="All Customers","*",F2))
Hi thank you for responding, yes your formula works in that format, however, see columns I-M, what formula would I use in columns J and M, I would like to build a chart from those areas which is why I would need that format. See additional attachment
 

Attachments

  • Formula Page.PNG
    Formula Page.PNG
    73.5 KB · Views: 4
Upvote 0
Perhaps you can give the expected results for a couple of different scenarios of what should be returned in those columns when different items are selected in the drop down?
See column N,
if I select ALL Years then total cases in columns J and M should return
If I select Year 2019 then total cases in columns J and M should return
If I select Year 2021 and Customer D then total cases in columns J and M should return
 

Attachments

  • Different Scenarios.PNG
    Different Scenarios.PNG
    71.4 KB · Views: 6
Upvote 0
If i've understood correctly - you could try this in J2 copied down:

Excel Formula:
=IF($E$19="All Years",COUNTIFS(A:A,I2),IF(I2=$E$19,COUNTIFS(A:A,I2),0))

And similar for M2.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,130
Messages
6,123,220
Members
449,091
Latest member
jeremy_bp001

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