PLEASE HELP!!! --- How to Place if a number is between 2 other numbers forumula --

josephpiva

New Member
Joined
Sep 29, 2015
Messages
1
Hi, I have 1 column where the total number is, and I have 5 other columns where that number could end up, depending on the number


column 1 --- less than 75
column 2 --- more than 75 and less than 150
column 3 -- more than 150 and less than 300
column 4 -- more than 300 and less than 400
column 5 -- more than 600



my column all the way to the left (at beginning) are different numbers: 45, 184, 524, 1014, 288, etc.

How can I make a formula that for each number it belongs to only one of the following and is auto as I create new numbers it just falls in a category


thank you so much!!!!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
In B1:
=IF(COLUMNS($A1:A1)=MATCH($A1,{0,75,150,300,600},1),$A1,"")

Copy across and down.

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="text-align:right; ">45</td><td style="text-align:right; ">45</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">184</td><td > </td><td > </td><td style="text-align:right; ">184</td><td > </td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">524</td><td > </td><td > </td><td > </td><td style="text-align:right; ">524</td><td > </td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">1014</td><td > </td><td > </td><td > </td><td > </td><td style="text-align:right; ">1014</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="text-align:right; ">288</td><td > </td><td > </td><td style="text-align:right; ">288</td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B1</td><td >=IF(COLUMNS<span style=' color:008000; '>($A1:A1)</span>=MATCH<span style=' color:008000; '>($A1,{0,75,150,300,600},1)</span>,$A1,"")</td></tr><tr><td >C1</td><td >=IF(COLUMNS<span style=' color:008000; '>($A1:B1)</span>=MATCH<span style=' color:008000; '>($A1,{0,75,150,300,600},1)</span>,$A1,"")</td></tr><tr><td >D1</td><td >=IF(COLUMNS<span style=' color:008000; '>($A1:C1)</span>=MATCH<span style=' color:008000; '>($A1,{0,75,150,300,600},1)</span>,$A1,"")</td></tr><tr><td >E1</td><td >=IF(COLUMNS<span style=' color:008000; '>($A1:D1)</span>=MATCH<span style=' color:008000; '>($A1,{0,75,150,300,600},1)</span>,$A1,"")</td></tr><tr><td >F1</td><td >=IF(COLUMNS<span style=' color:008000; '>($A1:E1)</span>=MATCH<span style=' color:008000; '>($A1,{0,75,150,300,600},1)</span>,$A1,"")</td></tr></table></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web >> </span>
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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