Share via

SUM with arrayformula with dropdown condition

Anonymous
2024-04-24T16:51:28+00:00

I have month name in cell B1 (Sheet Name- MS-HSD) in drop-down and have month wise sales data in column T4 to AE2082. I want sum in AF4 to AF2082 with condition in cell B1 ex. If I select B1=August then sum of April to August should display in AF4 to AF2082, similarly If I select B1=Jan then sum of April to Jan should display in AF4 to AF2082. Currently I am using SUM function with offset and vlookup. In this case same function was applied for all 2082 row.

Microsoft 365 and Office | Excel | For business | MacOS

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. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-04-25T03:12:00+00:00

    In cell AF3, enter this formula

    =SUM($T3:XLOOKUP($B$1,$T$2:$AE$2,$T3:$AE3))

    hope this helps.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-25T03:00:29+00:00

    Hi,

    Share data in a format that can be pasted in an MS Excel file. Show the expected result.

    https://indianoilworkplace-my.sharepoint.com/:x:/g/personal/shailendra_indianoil_in/EXiH3-Jj2BJCh8IDNoU0uWEBODMeD5iRdNYnfZdYuqio-A?e=EKuJ9Z

    Was this answer helpful?

    0 comments No comments
  3. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-04-24T23:07:02+00:00

    Hi,

    Share data in a format that can be pasted in an MS Excel file. Show the expected result.

    Was this answer helpful?

    0 comments No comments