SUMIF & COUNTIF referincing a cell data

mingandmong

Active Member
Joined
Oct 15, 2014
Messages
339
hi I'm using excel 2016

i have a spreadsheet with the following formula that works, but would like to modify

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIF(E:E,"7615") returned value= 290

this counts the number of times 7615 appears in the rows E:E

i would like to change the reference "7615" to cell W1 as this is were i have 7615 also , w2 contains 7616, cell w3 contains 7617

so my formula would look like

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIF(E:E,"W1") = 290
[/FONT][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIF(E:E,"W2") = 475
[/FONT][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIF(E:E,"W3") =14

Thankyou[/FONT]<strike>
</strike>
[/FONT]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Remove the quotes from the cell reference, it should be
=COUNTIF(E:E,W1)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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