Formula insert cost band

max_max

Board Regular
Joined
Jun 29, 2013
Messages
58
Hello to all,
In the attached file I must include this formula:

If the cost in E2 is in one of these bands:

Band 1 (less than 400 €)
Band 2 (from 400 € to less than 800 €)
Band 3 (from 800 € to less than 1200 €)
Band 4 (from 1200 € to less than € 1,500)
Band 5 (from 1500 € and beyond)

Put in H2 its band.

An example in E2 is 2800 €
In H2 must appear: Box 5 (from 1500 € and beyond)
I hope I was clear.
xam
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi, here is one option:

="Box " & MATCH(E2,{0,400,800,1200,1500})
 
Upvote 0
Hi formR,
it's o.k..
A change is possible.
I can not attach an example, I hope to explain.
Your formula now is this
= "Box" & match (F2; {0; 400; 800; 1200; 1500})
and the result is: box1 - box4 etc...
The editing is this:

instead box1 = (less than 400 €)
instead box2 =(from 400 € to less than 800 €)
instead box3 =(from 800 € to less than 1200 €)
instead box4 =(from 1200 € to less than € 1,500)
instead box5 = (from 1500 € and beyond)

max_max
 
Upvote 0
The editing is this:

Hi, you can try:

Code:
=LOOKUP(E2,{0,400,800,1200,1500},{"(less than 400 €)","(from 400 € to less than 800 €)","(from 800 € to less than 1200 €)","(from 1200 € to less than € 1,500)","(from 1500 € and beyond)"})
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,850
Members
449,345
Latest member
CharlieDP

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