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.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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