Compare two cells in a row with Criteria. Count Rows that match Criteria

1. Compare two cells in a row with Criteria. Count Rows that match Criteria

I've got a task for work and I can't seem to figure it out. Thank you in advance for any assistance provided.

Here is what I have. 4 Worksheets. The first worksheet is a summary page. I have 350 personnel that are broken down into three different groups. So each group has it's own sheet.

Here is what I need to accomplish. Results need to be posted on the summary sheet.

I need to compare cells B2 & D3 for each row on a worksheet and display the number of times they match on a worksheet. For example how many times does EP & EP match on a certain row.

I need to compare cells B2 & D3 for each row on a worksheeet and display the number of times they don't match on a worksheet. For example how many times does EP & MP occur.

I've attached an example for reference

Welcome to the forum.

Thanks.

Hi,

I am not sure this is what you are looking for, but you could try this on your summary sheet:

``Please Login or Register  to view this content.``

4. Re: Compare two cells in a row with Criteria. Count Rows that match Criteria

I apologize. In my haste to get this solved I did not follow the rules. Please forgive my ignorance. I hope the above is acceptable.

5. Re: Compare two cells in a row with Criteria. Count Rows that match Criteria

since colum b always has ep or p or mp
just count them in col d
=COUNTIF(EP!D:D,"ep")
but blank to p is slightly different

6. Re: Compare two cells in a row with Criteria. Count Rows that match Criteria

Originally Posted by martindwilson
since colum b always has ep or p or mp
just count them in col d
=COUNTIF(EP!D:D,"ep")
Holy Smokes. I didn't even think about that. I was trying to come up with some complicated formula to figure this out and you came up with a simple explanation.

I'm smacking my head thinking that I should've known that. But I guess when there is a time crunch on getting it done you forget about the simple stuff.

Thanks again. Problem solved.

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1