LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How to set the formula?

The first part is easy:

=ROUND(LEFT(A1*1000000,5)/100,0)
--
Gary''s Student - gsnu200814


"Eric" wrote:

Does anyone have any suggestions on how to set the formula?

I would like to convert any number in cell A1 into 3-digit number under 360.
If the given number is 32654 in cell A1, then 327 should be returned in cell
B1.

If the given number is 3265.4 in cell A1, then 327 should be returned in
cell B1.
If the given number is 326.54 in cell A1, then 327 should be returned in
cell B1.
If the given number is 32.654 in cell A1, then 327 should be returned in
cell B1.
If the given number is 3.2654 in cell A1, then 327 should be returned in
cell B1.
If the given number is 0.32654 in cell A1, then 327 should be returned in
cell B1.
If the given number is 0.032654 in cell A1, then 327 should be returned in
cell B1.

If the converted 3-digit number is greater than 360, then I would like to
convert it into 2-digit numbers.
If the given number is 94213 in cell A1, then 94 should be returned in cell
B1.
If the given number is 9421.3 in cell A1, then 94 should be returned in cell
B1.
If the given number is 942.13 in cell A1, then 94 should be returned in cell
B1.
If the given number is 94.213 in cell A1, then 94 should be returned in cell
B1.
If the given number is 9.4213 in cell A1, then 94 should be returned in cell
B1.
If the given number is 0.94213 in cell A1, then 94 should be returned in
cell B1.
If the given number is 0.094213 in cell A1, then 94 should be returned in
cell B1.

Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"