Microsoft excel formula - How to return a specific value from multiple cells.

Anonymous
2024-10-15T22:01:39+00:00

Hello,

I am attempting to creature a formula that will generate a result while searching multiple cells/multiple rows.

In the attached image im trying to have column E search for when "Person1" had the word "Apple" appear in Column B and/or Column C. If "apple" appeared then to have the "# of Doc" (column D) give the corresponding #.

Example of wanted result:

Person1 has Apple in Column B/C > Result is 101.
If done for Person 4, it would be 115 as the result.

I am self taught with excel and trying to learn! So any help would be greatly appreciated!

Microsoft 365 and Office | Excel | Other | Other

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
Answer accepted by question author
Ashish Mathur 102.4K Reputation points Volunteer Moderator
2024-10-15T23:04:15+00:00

Hi,

In cell H2, enter this formula

=FILTER($D$2:$D$7,BYROW((ISNUMBER(SEARCH(G2,$B$2:$C$7)))*($A$2:$A$7=F2),SUM))

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful