Help with "IF" formula please!

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
18
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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,508
Office Version
  1. 365
Platform
  1. Windows
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.
 
Solution

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
18
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
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!!!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
57,508
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
 

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
18
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
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?
 

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
18
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
Nevermind!! I'll do the opposite and use COUNTBLANK! :)
 

Watch MrExcel Video

Forum statistics

Threads
1,132,646
Messages
5,654,565
Members
418,140
Latest member
ahepple86

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