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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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
GroupCostResults

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]100[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]4556[/TD]
[TD="align: right"]100[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]6778[/TD]
[TD="align: right"]300[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]8990[/TD]
[TD="align: right"]200[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]9987[/TD]
[TD="align: right"]300[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]7654[/TD]
[TD="align: right"]500[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]270[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]540[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]4321[/TD]
[TD="align: right"]400[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]1357[/TD]
[TD="align: right"]700[/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]9753[/TD]
[TD="align: right"]100[/TD]

</tbody>
Sheet75

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=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),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



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,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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