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)" return the result.

Apologies  unable to upload sample file.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ProfessorJimJamMicrosoft Excel ExpertCommented:
when u say red you mean the font color or background color?
Can you post a sample please ?
route217JuniorAuthor Commented:
Hi how flow
Thanks  for the feedback..nearly worked it would I amend


THE ANSWER is 20 getting 0..cannot see my error
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.


You are missing something after te second SheetName or the ) is wrong what is it ? it gives an error
route217JuniorAuthor Commented:
No error  just returns zero  value.
sorry but
means nothing

you need to have a cell after !

route217JuniorAuthor Commented:
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

and get #REF! error

please if you need help help us when we ask for sample workbook
route217JuniorAuthor Commented:
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.
got it
replace in your formula

by this


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.