Link to home
Create AccountLog in
Avatar of route217
route217Flag 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.
Avatar of Professor J
Professor J

when u say red you mean the font color or background color?
Can you post a sample please ?
gowflow
Avatar of 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
=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
No error  just returns zero  value.
sorry but
indirect('SheetName'!)
means nothing

you need to have a cell after !

gowflow
Sorry c3...and still zero..error  in posting question on my part.
mmmm YOU from all the people in here should know better than that !!!!

let me see
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
I think it to do with < not begin recongised  as text..
pls let us think ... we are here for that simply post a sample that has the data.
THANK YOU
gowflow
ASKER CERTIFIED SOLUTION
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account