Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Shortened formula

Hi,

I have a need for a formula whereby the follow criteria applies: if D6 = 0,
return 0, if D6 is between .01 and .49 = .49, if D6 is between .50 and 1.24
= .99, if D6 is between 1.25 and 2.24 = 1.99 and so on. Is there a shorter
formula that someone else could understand easier than this one which works
but seems long winded?


=IF(D6=0,0,IF(D6<0.5,0.49,IF(D6<1,0.99,IF(D6-INT(D6)<0.25,INT(D6)-0.01,IF(D6-INT(D6)<0.5,INT(D6)+0.49,IF(D6-INT(D6)<1,INT(D6)+0.99))))))

Thanks, Rob


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Shortened formula

I believe the VLOOKUP function will suit your situation.

See Debra Dalgleish's website for instructions:
http://www.contextures.com/xlFunctions02.html#Range

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Rob" wrote:

Hi,

I have a need for a formula whereby the follow criteria applies: if D6 = 0,
return 0, if D6 is between .01 and .49 = .49, if D6 is between .50 and 1.24
= .99, if D6 is between 1.25 and 2.24 = 1.99 and so on. Is there a shorter
formula that someone else could understand easier than this one which works
but seems long winded?


=IF(D6=0,0,IF(D6<0.5,0.49,IF(D6<1,0.99,IF(D6-INT(D6)<0.25,INT(D6)-0.01,IF(D6-INT(D6)<0.5,INT(D6)+0.49,IF(D6-INT(D6)<1,INT(D6)+0.99))))))

Thanks, Rob



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 07:11 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"