Help with "IF" formula please!

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
33
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
Good morning!

I'm looking for some formula help please. What I would like is a formula to "tally" if there is something in certain cells. So in a row, if there is text (specifically a date) in cell A1, A3, A4, A6 then in A9 it would show 4. In the next row it could be a date in B1, B2, B5, B6, B7, B8 so in B9 it would show 6. Does that make sense and is that do-able? Thank you!!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I think you should just be able to use the COUNT function, i.e.
Excel Formula:
=COUNT(A1:A9)

If that does not work for you, please provide a sample of what your actual data looks like, along with your expected results.
 
Upvote 0
Solution
I think you should just be able to use the COUNT function, i.e.
Excel Formula:
=COUNT(A1:A9)

If that does not work for you, please provide a sample of what your actual data looks like, along with your expected results.
That works PERFECTLY!! Thank you so much!!!
 
Upvote 0
You are welcome.
 
Upvote 0
Quick question - is there a way to do this if there is words/text in the cell instead of numbers? For instance I have 20 rows, if there is A1:A20, if there is a name in 15 of them I want the cell to equal 15. Does that make sense?
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

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