COUNTIFS with dynamic range when same data is in different column in different sheets

Symphony044

New Member
Joined
Jan 8, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi excel experts,

I hope you can help..

I have multiple exports from a task management system.
In each export the header&data for 'Escalated to IT' is in a different column.

In each sheet I entered the formula to return the cell which has the words 'Escalated to IT' in it, then removed chars leaving just column letter.

Now I want to write COUNTIFS formula which inserts the column letter in the formula.

Many thanks!!
 

Attachments

  • IMG-20240108-WA0029.jpg
    IMG-20240108-WA0029.jpg
    41 KB · Views: 5
  • IMG-20240108-WA0028.jpg
    IMG-20240108-WA0028.jpg
    32.6 KB · Views: 5

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi & welcome to MrExcel.
Can you post the countifs formula.
 
Upvote 0
Thank you so much ☺️

Code:
=COUNTIFS('Project Name'!BN:BN,"yes",'Project Name'!D:D,"In Range",'Project Name'!F:F,"FALSE",'Project Name'!G:G,"FALSE",'Project Name'!H:H,"FALSE",'Project Name'!I:I,"FALSE",'Project Name'!J:J,"FALSE",'Project Name'!K:K,"FALSE")

All the cell ranges vary between the different exports. What's in D in one export can be in BH in another.
 
Upvote 0
Thanks for that, how about
Excel Formula:
=COUNTIFS(index('Project Name'!A:ZZ,xmatch("Escalated to IT",'Project Name'!A:ZZ)),,"yes",'Project Name'!D:D,"In Range",'Project Name'!F:F,"FALSE",'Project Name'!G:G,"FALSE",'Project Name'!H:H,"FALSE",'Project Name'!I:I,"FALSE",'Project Name'!J:J,"FALSE",'Project Name'!K:K,"FALSE")
 
Upvote 0
Thanks for sending it. Unfortunately it did not work 😔
 

Attachments

  • IMG-20240108-WA0030.jpg
    IMG-20240108-WA0030.jpg
    54.9 KB · Views: 4
Upvote 0
Oops missed a comma out & forgot to remove another, it should be
Excel Formula:
=COUNTIFS(index('Project Name'!A:ZZ,,xmatch("Escalated to IT",'Project Name'!A:ZZ)),"yes",'Project Name'!D:D,"In Range",'Project Name'!F:F,"FALSE",'Project Name'!G:G,"FALSE",'Project Name'!H:H,"FALSE",'Project Name'!I:I,"FALSE",'Project Name'!J:J,"FALSE",'Project Name'!K:K,"FALSE")
 
Upvote 0
Hi Fluff,

Thanks but it didn't work, so I am trying a different direction. I am separating the formula into separate cells referencing the cells I want and then concatenate into one cell creating a formula, hopefully it will work..
 
Upvote 0
Thanks but it didn't work
It would help if you said in what way it didn't work. ;)
But I have spotted another error, try
Excel Formula:
=COUNTIFS(index('Project Name'!A:ZZ,,xmatch("Escalated to IT",'Project Name'!A1:ZZ1)),"yes",'Project Name'!D:D,"In Range",'Project Name'!F:F,"FALSE",'Project Name'!G:G,"FALSE",'Project Name'!H:H,"FALSE",'Project Name'!I:I,"FALSE",'Project Name'!J:J,"FALSE",'Project Name'!K:K,"FALSE")
 
Upvote 0
Solution
Hi Fluff, it worked something, I have to double check but very optimistic, thanks!! 😊
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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