Formula to Find a Row then Add Data From that Row

k2timmy

New Member
Joined
Feb 5, 2015
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
I'm looking for the formula that will search a table or a range for a "Name" in the first column, then add up data I choose (Fruit) from that specific row. For example, if I want to search for "Bob" then add up the total amount of times he chose "Apple".

Data to Input:

F1: Name
F2: Fruit

Thank you to anyone who can help!
 

Attachments

  • Screen Shot 2021-12-09 at 2.32.49 PM.png
    Screen Shot 2021-12-09 at 2.32.49 PM.png
    45.3 KB · Views: 8

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also will the name in col A only occur once, or could it occur multiple times?
 
Upvote 0
Try this
=COUNTIFS(A:A,F1,B:B,F2)+COUNTIFS(A:A,F1,C:C,F2)+COUNTIFS(A:A,F1,D:D,F2)
 
Upvote 0
Another option would be
Excel Formula:
=SUMPRODUCT((A1:A8=F1)*(B1:D8=F2))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.

Please don't forget this
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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