Formula not functioning

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

Would really appreciate input on how I can get my formula working.

Excel screen shot:
https://imgur.com/a/9JC8UhS

How I want the formula to function:

If "Group" in column B= 1000 or 2000, in this case B8 and B9,

then,

I want the formula to sum all costs in column C, except for the costs where B equals 1000 and 2000. In this case sum all costs except C8 and C9.

then,

I want the formula to multiply the summed amount by 10 % if B=1000, and by 20 % if B= 2000.

I tried the following formula but did not really work, please note I am an Excel-amateur:
=IF(OR(B8=1000;B8=2000);SUMIFS($C$2:$C$1000;B:B;"<>1000";B:B;"<>2000");"");IF(B8=1000;C8*0,1;"");IF(B8=2000;C8*0,2;"")
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Im no pro I was able to do it in two parts with helper column but ran out of time... If I get the chance I will try again today

Ie I pulled into first column of results the sum of the values of 1000 and 2000 in cell below and then did the percentage.. hope that makes sense

Sure one of the pros will be able to write thr whole thing.. I was experimenting with and after that but got side tracked
 
Last edited:
Upvote 0
Im no pro I was able to do it in two parts with helper column but ran out of time... If I get the chance I will try again today

Ie I pulled into first column of results the sum of the values of 1000 and 2000 in cell below and then did the percentage.. hope that makes sense

Sure one of the pros will be able to write thr whole thing.. I was experimenting with and after that but got side tracked

Thanks for trying. I still have not managed to get it working :/
 
Upvote 0
Hi,

Would really appreciate input on how I can get my formula working.

Excel screen shot:
https://imgur.com/a/9JC8UhS

How I want the formula to function:

If "Group" in column B= 1000 or 2000, in this case B8 and B9,

then,

I want the formula to sum all costs in column C, except for the costs where B equals 1000 and 2000. In this case sum all costs except C8 and C9.

then,

I want the formula to multiply the summed amount by 10 % if B=1000, and by 20 % if B= 2000.

I tried the following formula but did not really work, please note I am an Excel-amateur:
=IF(OR(B8=1000;B8=2000);SUMIFS($C$2:$C$1000;B:B;"<>1000";B:B;"<>2000");"");IF(B8=1000;C8*0,1;"");IF(B8=2000;C8*0,2;"")



I have re read your post and I am confused.

I have put this =SUMIFS(C2:C12,B2:B12,"<>1000",B2:B12,"<>2000") in cell c13 ie under th $100 figure in your image. Tis is summing the column c where B does not = 1000 or 2000

I dont get what you are saying by want to multiply the summed amount by 10% if 1000 and 20% if 2000 as in this example I would have to sum by both....


What am I missreading
 
Upvote 0
Ie is thsi what you mean

=SUM(SUMIFS(C2:C12,B2:B12,"<>1000",B2:B12,"<>2000")+SUMIFS(C2:C12,B2:B12,1000)*0.1)+SUMIFS(C2:C12,B2:B12,2000)*0.2

So summs the whole of column c where column b is neither 1000 or 2000 and adds 10% where column b is 1000 and 20% where column b is 2000


Hoep I am right I am trying/
 
Upvote 0
Ie is thsi what you mean

=SUM(SUMIFS(C2:C12,B2:B12,"<>1000",B2:B12,"<>2000")+SUMIFS(C2:C12,B2:B12,1000)*0.1)+SUMIFS(C2:C12,B2:B12,2000)*0.2

So summs the whole of column c where column b is neither 1000 or 2000 and adds 10% where column b is 1000 and 20% where column b is 2000


Hoep I am right I am trying/

I do really appreciate your input. I tried your formula but I get following error= #NAME ?
 
Upvote 0
Hi,

I believe this is what you want:


Book1
BCD
1GroupCostResults
21234100 
34556100
46778300
58990200
69987300
77654500
810000270
920000540
104321400
111357700
129753100
Sheet75
Cell Formulas
RangeFormula
D2=IF(OR(B2={1000,2000}),SUMIFS(C$2:C$12,B$2:B$12,"<>1000",B$2:B$12,"<>2000")*IF(B2=1000,0.1,0.2),"")


D2 formula copied down.
 
Upvote 0
Hi,

I believe this is what you want:

BCD
1GroupCostResults
21234100
34556100
46778300
58990200
69987300
77654500
810000270
920000540
104321400
111357700
129753100

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet75

Worksheet Formulas
CellFormula
D2=IF(OR(B2={1000,2000}),SUMIFS(C$2:C$12,B$2:B$12,"<>1000",B$2:B$12,"<>2000")*IF(B2=1000,0.1,0.2),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



D2 formula copied down.

Yes this seems to be what I am looking for, I will try it once I get back to work and let you know ;)
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,207
Members
449,214
Latest member
mr_ordinaryboy

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