How do I get a count from one Excel tab to another tab using Xlookup and either Sumif(s), Countif(s), SumProduct, ect

Anonymous
2024-09-03T18:45:17+00:00

I have the following tabs in my workbook. I need a formula that gives me a either a count or a value of True / False in Tab 1, column PI11 when I do a XLookup between Tab 1 and Tab 2 on Epic Number and from the return array, (Tab 2 / Program increment), gets a count that matches the value in cell Tab 1 / B1, which is the column header name PI11.

Or, I need any formula that will provide my expected results based upon this data setup.

My expected results in Tab 1 under the column header PI11 is SFEPIC0002056 = 2 and SFEPIC0003486 = 1

Any help will be greatly appreciated.

Bryan

TAB 1

A B
Epic Number PI11
SFEPIC0002056
SFEPIC0003486

TAB 2

A B C
Epic Number Feature Number Program increment
SFEPIC0002056 SFFEAT0017633 PI14
SFEPIC0002056 SFFEAT0016976 PI11
SFEPIC0002056 SFFEAT0014810 PI12
SFEPIC0002056 SFFEAT0013648 PI11
SFEPIC0003486 SFFEAT0026976 PI12
SFEPIC0003486 SFFEAT0024810 PI11
SFEPIC0003486 SFFEAT0023648 PI13
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
{count} votes
Answer accepted by question author
  1. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2024-09-03T23:11:23+00:00

    Hi,

    In cell B2 of sheet1, enter this formula and drag down

    =COUNTIFS($E$2:$E$8,A2,$G$2:$G$8,B$1)

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-09-04T00:43:11+00:00

    Hi Ashish.

    I have to keep the summary and detailed data in two separate tabs. I was able to modify your formula and it works great.

    Thank you for your quick assistance. Have a very nice day!

    Bryan

    0 comments No comments
  2. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2024-09-04T02:42:08+00:00

    You are welcome. Have a great day.

    0 comments No comments