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;"")
 
Yes this seems to be what I am looking for, I will try it once I get back to work and let you know ;)

If you get a #NAME? error, need to know what version of Excel you're working on, may need to switch to SUMPRODUCT function.
 
Last edited:
Upvote 0

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.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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