Sum Exact value & Split certain value between two cells

Dtex20

Board Regular
Joined
Jan 29, 2018
Messages
50
Hi guys,

I've got a problem, here is an example of the issue:

Cell A1:A3 value = 40
Cell B1:B3 Value = 100
Cell C1:C3 Value = 140

Cells D1 & D2 are SUM cells which add up the values.

I'm trying to find a way for D1 to SUM all the 40's
D2 to Sum all the 100's
Also i'm looking for a way to split 140 - 40 goes to D1 and 100 goes to D2.

The final value would be:

D1 = 240
D2 = 600

Can anyone point me in the right direction?

Thanks,
Connor
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
This is not clear for future use.
Will the values will only ever be 40 100 and 140 or something else ?
It's also not clear why 40 goes to D1 and 100 goes to D2 - is it because 140 is greater than 100 or something else?

Nevertheless this solves the example based on your given data.

in D1
=SUMIF(A1:C3,40)+COUNTIF(A1:C3,">100")*40

in D2
=SUMIF(A1:C3,100)+COUNTIF(A1:C3,">100")*100
 
Last edited:
Upvote 0
This is not clear for future use.
Will the values will only ever be 40 100 and 140 or something else ?
It's also not clear why 40 goes to D1 and 100 goes to D2 - is it because 140 is greater than 100 or something else?

Nevertheless this solves the example based on your given data.

in D1
=SUMIF(A1:C3,40)+COUNTIF(A1:C3,">100")*40

in D2
=SUMIF(A1:C3,100)+COUNTIF(A1:C3,">100")*100

They will only ever be 40 and 100.

I've only given and example of the problem, i can manipulate what you've given me to suit my purpose.

Thanks,
Connor
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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