Countifs

jwgreen1986

Board Regular
Joined
Mar 8, 2019
Messages
64
Having a lot of issues trying to resolve this problem.
so i currently have 3 league tables. each league table is then automatically changed depending on the options selected from some drop downs.

  1. shows the sales of staff at a particular site. You have an option of new sales, used sales and then overall sales. you can then select the date drop down to change the month, (Jan - Dec and then an option for YTD). you can also select which site you want to show on this by the 3rd drop down.
  2. Shows a league table for sites. again you can change the criteria for this by changing the month or changing the sale type (the site drop down has no affect on this table)
  3. this table is an overall sales table. it shows every member of staff. This again can be changed to show the month and sales type (site drop down has no affect on this table either.

The issue i am having is with table 1. the table is there and set up. the issue i am having is there is a lot of #NUM ! in the table. this is because after the last person for the site it is bringing back num!s in the table which in turn is messing with the ranking system etc.

now i was thinking of using a countif formula at the beginning where it would count the amount of people at site, once the row is more than at site then it will start returning blanks and the table would therefore work.

The problem i have is splitting the new and used sales and counting these. if it was just a simple new/used it wouldnt be bad, but we also have staff that are classed as combined. this means they can sell both new and used.

so basically i want to create a count if at the beginning of my formula where it is like this

if new is selected in the drop down count the total number of new and combined staff at the site that is selected.
If used is selected in the drop down count the total number of used and combined staff at the site that is selected.
If overall is selected then count all the staff at the site selected.

any help with this would be fantastic
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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