need help with calculations

needshelpinexcel

New Member
Joined
Dec 20, 2018
Messages
9
I am trying to determine a margin based on my total cost of products

For example
I have multiple line items with a cost

I want to add a margin to each line item depending on it range
<1000 add 45% margin
<5000 but greater than 1001 add 43% margin
<10000 but greater tan 5001 add 35% margin

etc
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try
Code:
=IF(A1<=1000,A1*1.45,IF(A1<=5000,A1*1.43,A1*1.35))

but...what does etc mean....how many more conditions are there ???
 
Upvote 0
Hi,

You can also use LOOKUP, as Michael M asked, what are the "rest" of the requirements ?

This formula, as is, anything Over 10000 also adds 35% margin:


Book1
ABC
110001450
250016751.35
31000013500
410011431.43
550016751.35
62000027000
Sheet413
Cell Formulas
RangeFormula
C1=A1*LOOKUP(A1,{0,1001,5001},{1.45,1.43,1.35})
 
Upvote 0
ok so I have multiple rows that I am adding up in sections
for instance I have 2 rows of numbers in one section
General
Prep time 8 hrs $55/hr $440
Tools 1 QY $500/Material cost $500

This goes on for multiple sections
at the bottom of the sheet I have a subtotal $940


On the second sheet I have each section listed with subtotal


So


General $940


Paint $1500


Wax $500


So here is what I want to do.
If the subtotal on page 1 isbetween a certain amount I want to multiple the subtotal of each section onpage 2 by a certain percentage
so that the percentages are part of the sum that is then subtotatalled at the bottom

 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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