New To Excel - Question

Newbie28

New Member
Joined
May 19, 2011
Messages
3
I am very new to Excel and have a question regarding a formula. Here is the formula I am working with
=IF(SL="YES","NONE",110000&13&"-"&IF(LENGTH<20.1,233,IF(LENGTH<24.1,287,IF(LENGTH<28.1,335,IF(LENGTH<32.1,383,IF(LENGTH<35.1,419,IF(LENGTH<40.1,479,539)))))))

I have been asked to change the formula to "Length Minus (2)".

How and where in the formula do I do this?
Thank You
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I'd guess you'd replace all LENGTH with (LENGTH-2)
 
Upvote 0
Show the formula that you have now, and explain what you mean by "it didn't work".
 
Upvote 0
Glenn,
11000013-479 is the complete component number. When I put the Length-2 as you suggested, it changes the last part of the component number from 479 to 419. The 479 needs to remain constant.
Thank You.
 
Upvote 0
Glenn,
11000013-479 is the complete component number. When I put the Length-2 as you suggested, it changes the last part of the component number from 479 to 419. The 479 needs to remain constant.
Thank You.

According to the formula the component number is dependent on the LENGTH, so wouldn't you expect it to change if your comparisons change? Maybe you'd better explain the logic of what you are trying to do, and then maybe someone may be able to help in a better way.
 
Upvote 0

Forum statistics

Threads
1,224,563
Messages
6,179,527
Members
452,923
Latest member
JackiG

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