Multiple "if greater than, if less than"

PaisleyFin

New Member
Joined
Apr 5, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, i'm hoping someone can help me. I'm trying to do a formula to say the following:

If C7 is greater than 0 but less than 336 then 0. If C7 is greater than 335 but less than 671 then 1. If C7 is greater than 67p but less than 1005 then 2...

It goes on up to 10 so is quite long. Can anyone help a struggling simpleton?

Many thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I'd recommend a lookup table as it's easier to maintain. In the first column of the table put the start value of each band (0, 336 etc) and in the second column put the value for the band (0, 1 etc). Then you just need:

Excel Formula:
=LOOKUP(C7,G1:H10)

for example.
 
Upvote 0
Another option if C7 can never be 0 or less
Excel Formula:
=INT((C7-1)/335)
 
Upvote 0

Forum statistics

Threads
1,216,748
Messages
6,132,494
Members
449,730
Latest member
SeanHT

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