Count cells on different sheet

eechristaylor

New Member
Joined
Oct 22, 2013
Messages
43
Office Version
  1. 365
Platform
  1. Windows
I am using COUNTA to look at a range of cells on another sheet and if they have data getting them to return the number. That is the "Status" field.

I need to do this across several rows and use the unique identifier to make sure the correct row data is returned. Example below and across those cells in Red. Is there a way to use xlookup for this?
Sheet 1
Unique identifierStatus
A
3​
B
2​
C
2​
Sheet 2
Unique identifierDate 1Date 2Date 3otherotherDate 4otherotherDate 5
A
3/1/2023​
5/24/2023​
7/30/2024​
B
3/1/2023​
5/24/2023​
C
3/1/2023​
5/24/2023​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
what cell in sheet2 do you want the counta() function used? How is the status number used in Sheet 2? (are you appending the value to the word "Date"?) Can you explain more?
 
Upvote 0
what cell in sheet2 do you want the counta() function used? How is the status number used in Sheet 2? (are you appending the value to the word "Date"?) Can you explain more?
I want it to be used in all the Date fields that are red. I am bringing this to a master sheet so i can judge project completion. If all 5 fields have a date and the sheet one will reflect it as "5" we know that project is complete. These dates on the project all have a different meaning, so for now i have Counta(sheet2!B2:D2, sheet2!g2, sheet2!J2) but this means the data has to stay specifically in row 2. I want to be able to ensure the count for "A" is the same no matter what row it is on in sheet2.

where the "status" shows 3,2,2 this is where I need the formula.
 
Upvote 0
i'm still a bit confused. But it sound like you want to a count of the date columns that are populated.
If so, try this: (this whinged, so not entirely sure it will work perfectly - but the minisheet below works as I think you want - you just need to adjust the references.).
Excel Formula:
=SUM(--ISNUMBER(ChooseCols(FILTER(Sheet2!$B$2:$K$100,Sheet2!$A$2:$A$100=Sheet1!$A2,""),2,3,4,7,10)))


Book4
ABCDEFGHIJ
1Unique identifierStatus
2A3
3B2
4C2
5
6Sheet 2
7Unique identifierDate 1Date 2Date 3otherotherDate 4otherotherDate 5
8A2023-03-012023-05-242024-07-30
9B2023-03-012023-05-24
10C2023-03-012023-05-24
11
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=SUM(--ISNUMBER(CHOOSECOLS(FILTER($A$8:$J$10,$A$8:$A$10=A2,""),2,3,4,7,10)))
 
Upvote 0
i'm still a bit confused. But it sound like you want to a count of the date columns that are populated.
If so, try this: (this whinged, so not entirely sure it will work perfectly - but the minisheet below works as I think you want - you just need to adjust the references.).
Excel Formula:
=SUM(--ISNUMBER(ChooseCols(FILTER(Sheet2!$B$2:$K$100,Sheet2!$A$2:$A$100=Sheet1!$A2,""),2,3,4,7,10)))


Book4
ABCDEFGHIJ
1Unique identifierStatus
2A3
3B2
4C2
5
6Sheet 2
7Unique identifierDate 1Date 2Date 3otherotherDate 4otherotherDate 5
8A2023-03-012023-05-242024-07-30
9B2023-03-012023-05-24
10C2023-03-012023-05-24
11
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=SUM(--ISNUMBER(CHOOSECOLS(FILTER($A$8:$J$10,$A$8:$A$10=A2,""),2,3,4,7,10)))

Thanks but that did not work, I input formula in my sample document and no matter what the input is it only returns a "1"
 
Upvote 0

Forum statistics

Threads
1,216,570
Messages
6,131,473
Members
449,652
Latest member
ylsteve

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