Calculate value based on cell value

johnbush

New Member
Joined
Jan 2, 2019
Messages
2
Hi
I would like a formula which will return a value based on the value in another cell
so if the value in a cell is gt or lt and value then multiply tha value by x
so
if
a1 gt 0 and lt 100 then a1*5 or if a1 gt 100 or lt 200 then a1*10 or if a1 gt 200 or lt 300 then a1 *15

Hope that makes sense

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the Board!

I don't think it is quite clear.
Which cell has "gt" or "lt" and which cell has the value that you want multiplied?
 
Upvote 0
I think it means greater than and less than. What is 100 meant to be? 5 or 10? Try this:

=A1*LOOKUP(A1,{0,100,200,300},{5,10,15,0})
 
Upvote 0
I think it means greater than and less than.
Looks like you are probably right.

Don't know why they just didn't write that out...
Maybe its "text speak" like LOL and BTW, though I have never seen it used before with "greater than" or "less than" (maybe I am too old and out of the loop).
 
Upvote 0
Another option, if 100 should be *10
=A1*(INT(A1/100)+1)*5
 
Upvote 0
I think it means greater than and less than. What is 100 meant to be? 5 or 10? Try this:

=A1*LOOKUP(A1,{0,100,200,300},{5,10,15,0})

Hi
so I have a value in cell a1
i would like to check the value of that cell and if it is say between 0-100 multiply it by a value of my choice say 10 and if it is between 100 - 200 multiply it by another value of my choice say 20 and if it is between 201-300 ditto

hope this makes more sense
 
Upvote 0
You still haven't said what should happen if the cell value=100
That said how about

Excel 2013/2016
AB
15
250250
31001000
41501500
52003000
650015000
B
Cell Formulas
RangeFormula
B2=A2*(INT(A2/100)+1)*B$1
 
Upvote 0
Please stop posting the same thing over and over! We left the response from 10:08 AM above that has the same thing that you posted in the next 5 responses.
 
Last edited:
Upvote 0
Cross posted https://www.excelforum.com/excel-general/1258439-calculate-different-values-from-same-cell.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,378
Messages
6,119,188
Members
448,873
Latest member
jacksonashleigh99

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