Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Will FLOOR & CEILING work with variable stratifications?

I am attempting to use a lookup formula to determine the next iteration in an
array.

For instance, if the cell = 21,000 then I need the result to be the value in
the array immediately lower than 21,000, in this case 20,000. In the next
cell, I need the result to be the value in the array immediately greater than
21,000, in this case 25,000.

The FLOOR and CEILING formulas would normally work but, the stratifications
are not static. The values in this array change from 1,000 to 2,000 to 5,000
to 10,000 in different places in the array.

The LOOKUP function seems to work for the value immediately less than the
cell value.

Unfortunately, for the greater than value, I am currently using nested IF
statements like
=IF(C7<10000,H7+1000,IF(C7<=20000,H7+2000,IF(C7<=5 0000,H7+5000,IF(C750000,H7+10000))))

This seems to work but there has to be a cleaner way that is more idiot
proof. Does anyone have any ideas?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Will FLOOR & CEILING work with variable stratifications?

Try this formula
=H7+LOOKUP(C7,{1,10000,20001,50001},{1000,2000,500 0,10000})
With best wishes
Sreedhar

"johnu" wrote:

I am attempting to use a lookup formula to determine the next iteration in an
array.

For instance, if the cell = 21,000 then I need the result to be the value in
the array immediately lower than 21,000, in this case 20,000. In the next
cell, I need the result to be the value in the array immediately greater than
21,000, in this case 25,000.

The FLOOR and CEILING formulas would normally work but, the stratifications
are not static. The values in this array change from 1,000 to 2,000 to 5,000
to 10,000 in different places in the array.

The LOOKUP function seems to work for the value immediately less than the
cell value.

Unfortunately, for the greater than value, I am currently using nested IF
statements like
=IF(C7<10000,H7+1000,IF(C7<=20000,H7+2000,IF(C7<=5 0000,H7+5000,IF(C750000,H7+10000))))

This seems to work but there has to be a cleaner way that is more idiot
proof. Does anyone have any ideas?

Thanks

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
can't get two variable tables to work clicktraining Excel Worksheet Functions 12 August 27th 07 03:48 PM
can't get two variable tables to work clicktraining Excel Worksheet Functions 0 August 8th 07 07:24 PM
Something like CEILING or FLOOR gusvenables Excel Worksheet Functions 3 October 28th 05 04:09 AM
ceiling & floor Bill Ridgeway New Users to Excel 1 August 7th 05 02:32 PM
work roster with variable inputs foxwave Excel Discussion (Misc queries) 0 December 3rd 04 07:39 PM


All times are GMT +1. The time now is 05:45 AM.

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

About Us

"It's about Microsoft Excel"