Avatar of route217
route217
Flag for United Kingdom of Great Britain and Northern Ireland asked on

countifs formula with indirects

Hi Experts  EXCEL 2010

Need a countifs formula to do the following:

If cell A1 sheet apple is red, then look in sheet pivot column b2  ('pivot'!b15:b200) range formula. And count all the reds in the data range and also look in column  g2 ('pivot'!g15;g200) formula..and count the "(blank)"..to return the result.


Apologies  unable to upload sample file.
Microsoft Excel

Avatar of undefined
Last Comment
gowflow

8/22/2022 - Mon
Professor J

when u say red you mean the font color or background color?
gowflow

Can you post a sample please ?
gowflow
route217

ASKER
Hi how flow
Thanks  for the feedback..nearly worked it out..how would I amend

=countifs(indirect('SheetName'!b3),"red",indirect('SheetName'!),"<£1M")

THE ANSWER is 20 getting 0..cannot see my error
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
gowflow

=countifs(indirect('SheetName'!b3),"red",indirect('SheetName'!),"<£1M")

You are missing something after te second SheetName or the ) is wrong what is it ? it gives an error
gowflow
route217

ASKER
No error  just returns zero  value.
gowflow

sorry but
indirect('SheetName'!)
means nothing

you need to have a cell after !

gowflow
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
route217

ASKER
Sorry c3...and still zero..error  in posting question on my part.
gowflow

mmmm YOU from all the people in here should know better than that !!!!

let me see
gowflow

Why don't you post this sample workbook and make my life easier !!!!

I tried
=COUNTIFS(INDIRECT(SheetName!B3),"red",INDIRECT(SheetName!C3),"<£1M")

and get #REF! error

please if you need help help us when we ask for sample workbook
gowflow
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
route217

ASKER
I think it to do with < not begin recongised  as text..
gowflow

pls let us think ... we are here for that simply post a sample that has the data.
THANK YOU
gowflow
ASKER CERTIFIED SOLUTION
gowflow

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.