=COUNTIFS Function w/ Multiple sheets & Ranges + Formatting

Dubyah

New Member
Joined
Mar 30, 2015
Messages
20
My function is as follows and is currently working.. but I was wondering if there was an easier way to refer to another sheet (Range) 'Secret List' within a countif function, or another way to do the same thing.

=COUNTIFS(C304,'Secret List'!$B$3)+COUNTIFS(C304,'Secret List'!$B$4)+COUNTIFS(C304,'Secret List'!$B$5)+COUNTIFS(C304,'Secret List'!$B$6)+COUNTIFS(C304,'Secret List'!$B$7)

The current function returns a value of "1" if the cell in column C matches specific cells on sheet 'secret list'.

Essentially I would like to be able to refer to the range on sheet 'secret' list rather than individual cells. Is this possible?

Additionally, I'm having some difficulty adding a conditional format to the rows that contain cells returning '1' from the above function. I would like the rows returning the '1' value to be highlighted.

THanks,
Will
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Wow, interesting.. That does the trick! Any advice on how to conditionally format the rows based on the identifier returned from the above function?
 
Upvote 0
Wow, interesting.. That does the trick! Any advice on how to conditionally format the rows based on the identifier returned from the above function?

=COUNTIFS('Secret List'!$B$3:$B$7,C304)

returns an occurrence count of the value C304 houses.

Are you wanting to conditionally format any cell in B3:B7 of Secret List when it is equal to the C304?
 
Upvote 0
Any cell in not in the secret list.

Sheet one has 900+ entries the secret list just has a few. So in other words conditionally format cells on sheet one to identify entries also on the secret list. Ideally highlight the entire row. Rather than just the single identifying cell.
 
Upvote 0
Any cell in not in the secret list.

Sheet one has 900+ entries the secret list just has a few. So in other words conditionally format cells on sheet one to identify entries also on the secret list. Ideally highlight the entire row. Rather than just the single identifying cell.

Select the sheet one entries (which is assumed to start in A2 in the example below) and run the following formula:

=MATCH(A2,'Secret List'!$B$3:$B$7,0)

and apply the desired format.
 
Upvote 0

Forum statistics

Threads
1,215,603
Messages
6,125,786
Members
449,259
Latest member
rehanahmadawan

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