Share via

Excel - Using two counting formulas in one cell

Anonymous
2024-08-16T12:25:09+00:00

Hi,

I am looking to use two counting formulas in the one cell. I first need to use this formula =COUNTIFS('Enquiry List'!C1:C30,"Land & Property Lease/Rent") - this formula calculates the number of cells under the category "Land & Property Lease/Rent".

In the same cell, I then need to find out how many times the category "Land & Property Lease/Rent" was used during the whole month of May. I tried adding the additional formula onto the one above which now shows as =COUNTIFS('Enquiry List'!C1:C30,"Land & Property Lease/Rent"), ('Enquiry List'!A1:A30,">30/04/2024",'Enquiry List'!A1:A30,"<01/06/2024")

However, I end up getting a message saying there is a problem with the formula.

Can someone help?

Thanks,

Karen

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2024-08-16T14:04:21+00:00

    Karen,

    My bad, I beg your pardon.

    =COUNTIF('Enquiry List'!C1:C30,"Land & Property Lease/Rent")&"/"&COUNTIFS('Enquiry List'!C1:C30,"Land & Property Lease/Rent",'Enquiry List'!A1:A30,">=01/05/2024",'Enquiry List'!A1:A30,"<01/06/2024")

    If that doesn't produce the expected result I need to see your (sample) file.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-16T13:37:48+00:00

    Hi Andreas,

    Thanks for your help. I tried your formula and I got this message:

    Is there anything else you can suggest?

    Was this answer helpful?

    0 comments No comments
  3. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2024-08-16T12:35:55+00:00

    Karen, try this one:

    =COUNTIFS('Enquiry List'!C1:C30,"Land & Property Lease/Rent") & "/" & ('Enquiry List'!A1:A30,">=01/05/2024",'Enquiry List'!A1:A30,"<01/06/2024")

    You'll get an output like "100/20"

    Andreas.

    Was this answer helpful?

    0 comments No comments