finding the right formula to calculate values

Colleen905

New Member
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?

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,

Are you after?

=COUNTIFS(F20:F23,"Yes")

=COUNTIF(\$A\$3:\$A\$11,"YES")
=SUM(--(\$A\$3:\$A\$11="YES")) with Ctrl+shift+enter many wayss to do this

Are you after?

=COUNTIFS(F20:F23,"Yes")

That was the formula exactly!!! Thank you!!! ok I can go to sleep now lol

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

That was the formula exactly!!! Thank you!!! ok I can go to sleep now lol

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

You are welcome. Thanks for the update!...

Replies
6
Views
378
Replies
3
Views
443
Replies
19
Views
857
Replies
6
Views
218
Replies
0
Views
186

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?

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

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