How to Three columns, different SUM by columns in one cell another sheet

K0st4din

Active Member
Joined
Feb 8, 2012
Messages
377
Hi, I searched a lot, but I couldn't find anything on the internet.
I have three columns in sheet1
Cars, Fruits, Cities
and down in the columns I have numbers that I need to add (SUM) in sheet2
I'm asking for some help, I just don't know what to add to make things happen to me.
Example:
in sheet 1 in column B6 - Cars
b7 - 5
b8 - 15
b9 - 5
total 25

in sheet 2 I choose in cell A5 - cars and in B5 it should show me 25
if in A5 I choose - Fruits, in B5 - it must show me the sum of the fruits, if I have chosen in A5 - Cities, in B5 respectively the sum of cities.
Thank you in advance for your cooperation.
If there is something that is not clear, please ask me.
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,348
Office Version
  1. 365
Platform
  1. Windows
How about
=SUM(INDEX(Sheet1!A7:C20,,MATCH(A5,Sheet1!A6:C6,0)))
 

K0st4din

Active Member
Joined
Feb 8, 2012
Messages
377
YES, YES, YES, THANK YOU VERY MUCH
I wish you good health.
That's exactly what I was looking for.
You are the top 100000000000%
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,348
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,454
Messages
5,601,764
Members
414,471
Latest member
cchunyadi

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
Top