×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Counting rows in databse according to two columns of data

Counting rows in databse according to two columns of data

Counting rows in databse according to two columns of data

(OP)
We use excel spreadsheets as login databases for samples in the lab.  Each row is a new sample with 10 or 12 columns of information.  What I would like excel to do is to count the number of rows that were entered each month as well as if another column has an X or not.  I am using two ifcounts, subtracted from each other to get the number of samples per month already.  But everything I try to get excel to see if there is an X in another column backfires.  Any help would be greatly appreciated.

dewdog

RE: Counting rows in databse according to two columns of data

Look into COUNTA and DCOUNTA functions.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Counting rows in databse according to two columns of data

Hello,

SUMPRODUCT maybe the way to go, not knowing the layout of the data, have come up with the following example.

Col A has dates
Col B has x's.

In E1 enter an number for the month e.g. 2
In F1 enter x

Then in G1 enter the following formula

=SUMPRODUCT(--(MONTH($A$1:$A$6)=E1),--($B$1:$B$6=F1))


amend ranges as required.

----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources