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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Remove the quotes from the cell reference, it should be
=COUNTIF(E:E,W1)
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,075
Members
449,205
Latest member
Healthydogs

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