finding the right formula to calculate values

Colleen905

New Member
Joined
Feb 17, 2016
Messages
3
Question: find the appropriate function to count how many of the cells in the range (F20:F23) evaluate to a value of Yes.
Met Cdn $ Targets?
No (=IF(C20>=K20,"Yes","No"))
Yes (=IF(C21>=K21,"Yes","No"))
No (=IF(C22>=K22,"Yes","No"))
Yes (=IF(C23>=K23,"Yes","No"))
# of products on target: ?(Formula needed)

F20 to F23 has formulas for their cells which I have in brackets above

<colgroup><col span="3"></colgroup><tbody>
</tbody>

I tried to use VLOOKUP:
=VLOOKUP("Yes",F20:F23,1,FALSE)
but it doesn't count the 2 Yes's. perhaps the wrong formula? :confused::confused:
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Colleen905,

can you provide screenshot? and what's currently the problem & what to achieve here?
A little bit confuse with the question like

Met Cdn $ Targets? # of products on target: ?(Formula needed)

you can use dummy file if its confidential.

thanks
Warm regards,
Adrian
 
Upvote 0
sorry I shouldn't have put that part in as it was irrelevant for the question...but I did get the answer with was the COUNTIF formula. Sorry about that
 
Upvote 0

Forum statistics

Threads
1,211,772
Messages
6,103,876
Members
447,882
Latest member
LORENA

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