each data in 2 different sheets and sum in 3rd

Ollie at Sky

New Member
Joined
Jan 3, 2014
Messages
2
sheet 1

ABCD
1bananafruit
2applefruit
3tunafish
4vealmeat

<tbody>
</tbody>


sheet 2

ABC
1veal25
2banana31
3tuna72
4apple43
5banana19

<tbody>
</tbody>



I need to have sum total of fruit ( answer is 93 ) in 3rd spread sheet.
I tried with sumifs and sum with index/match, couldn't get the formula.

I know I can use vlookup to date match from sheet 1 to sheet 2, or reverse.
Than I can have sum total of fruit, but is there any other way to have not doing that and finish at once in 3rd sheet?

Is it even possible ?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Don't think what you're wanting to do is possible in a single formula.
The reason is that you would need to somehow create an index/lookup to return multiple values in a single array (which, to my knowledge, is not possible).
A much better (and more transparent) way would be as follows:

ABCD
4BananaFruit
5AppleFruit
6TunaFish
7VealMeat
8
9
10
11
12Veal25 Meat
13Banana31 Fruit
14Tuna72 Fish
15Apple43 Fruit
16Banana19 Fruit
17
18
19
20 Fruit93

<tbody>
</tbody>
Where D12 to D16 is:

Code:
=INDEX($C$4:$C$8,MATCH($B12,$B$4:$B$8,FALSE))

...and cell B20 is:

Code:
=SUMIF($D$12:$D$17,A20,$C$12:$C$17)

Hope this helps.
Brettster.
 
Upvote 0
Thank you for reply and I would like to ask one more question to ask.
I can use vlooup instead index with match?
I think they dose the same thing.
 
Upvote 0

Forum statistics

Threads
1,196,028
Messages
6,012,956
Members
441,740
Latest member
IammeResources

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