How to do a range in excel

dyscjocki

New Member
Joined
Sep 12, 2007
Messages
21
I need to have a formula to do this,
If cell "A1" is between 113 to 137 put the number 50 in cell A4 also if it is between 138 to 162 put the number 53 in cell A4.

Can this be done?

Thank you.
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

facethegod

Well-known Member
Joined
Aug 1, 2006
Messages
767
Welcome,

In A4 try


Code:
=IF(OR(A1>162,A1<113),"",IF(MOD(A1,113)<=24,50,53))
 

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,002
Office Version
  1. 365
  2. 2016
Welcome to the board

Perhaps something like

Code:
=LOOKUP(A1, {0,0;113,50;137,53})

in A4 might do the trick

HTH


Dave

EDIT:typo
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
I need to have a formula to do this,
If cell "A1" is between 113 to 137 put the number 50 in cell A4 also if it is between 138 to 162 put the number 53 in cell A4.

Can this be done?

Thank you.

Hi dyscjocki:

Welcome to MrExcel Board!

One way ...
y070908h1.xls
ABCD
1114
2
3
450
5
Sheet22


formula in cell A4 is ... =VLOOKUP(A1,{0,"unknown";113,50;138,53;163,"unknown"},2)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,648
Members
414,083
Latest member
Mrsash

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
Top