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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

radian89

Board Regular
Joined
Nov 12, 2015
Messages
112
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
 

MandeepBaluja

Board Regular
Joined
Jan 28, 2014
Messages
120
=COUNTIF($A$3:$A$11,"YES")
=SUM(--($A$3:$A$11="YES")) with Ctrl+shift+enter many wayss to do this :cool:
 

Colleen905

New Member
Joined
Feb 17, 2016
Messages
3
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
 

Watch MrExcel Video

Forum statistics

Threads
1,129,589
Messages
5,637,278
Members
416,963
Latest member
samfuge

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
Top