#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Different range

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Different range

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Different range

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Different range

Hi,
try

=IF(E58=10000,MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59,IF(E58=15000,MIN(IF(T5:T 24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59))

press shift+ctrl+enter

"puiuluipui" wrote:

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Different range

WORKS GREAT!!
Thanks allot!

"Eduardo" a scris:

Hi,
try

=IF(E58=10000,MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59,IF(E58=15000,MIN(IF(T5:T 24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59))

press shift+ctrl+enter

"puiuluipui" wrote:

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Different range

Hi, can you make this formula work the same way?
=VLOOKUP(E61, U5:U24, 2, FALSE)

If in "E58" is 10.000 than the formula to look in "U5:U24"
If in "E58" is 15.000 than the formula to look in "V5:V24"

"Eduardo" a scris:

Hi,
try

=IF(E58=10000,MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59,IF(E58=15000,MIN(IF(T5:T 24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59))

press shift+ctrl+enter

"puiuluipui" wrote:

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Different range

Hi,
=if(e58=10000,VLOOKUP(E61, U5:U24, 2, FALSE),if(e58=15000,VLOOKUP(E61,
v5:v24, 2, FALSE)))

"puiuluipui" wrote:

Hi, can you make this formula work the same way?
=VLOOKUP(E61, U5:U24, 2, FALSE)

If in "E58" is 10.000 than the formula to look in "U5:U24"
If in "E58" is 15.000 than the formula to look in "V5:V24"

"Eduardo" a scris:

Hi,
try

=IF(E58=10000,MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59,IF(E58=15000,MIN(IF(T5:T 24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59))

press shift+ctrl+enter

"puiuluipui" wrote:

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
Thanks!

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Different range

Hi, i misstype the code. Sorry. So,...

....can you make this formula work the same way?
=VLOOKUP(E61, U4:V24, 2, FALSE)

If in "E58" is 10.000 than the formula to look in "S4:T24"
If in "E58" is 15.000 than the formula to look in "U4:V24"

Can this work with vlookup?

Thanks!!








"puiuluipui" a scris:

Hi, can you make this formula work the same way?
=VLOOKUP(E61, U5:U24, 2, FALSE)

If in "E58" is 10.000 than the formula to look in "U5:U24"
If in "E58" is 15.000 than the formula to look in "V5:V24"

"Eduardo" a scris:

Hi,
try

=IF(E58=10000,MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59,IF(E58=15000,MIN(IF(T5:T 24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59))

press shift+ctrl+enter

"puiuluipui" wrote:

Hi, i cant make your code work. My code is an array code and must be entered
with crtl+shift and enter. That's why i have those brackets. I tried the same
with your code, but is not working. What am i doing wrong?
Thanks!

"Eduardo" a scris:

Hi,
=if(E58=10000,{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59},if(E58=15000,{=MIN(IF(T 5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59})

if this helps please click yes, thanks

"puiuluipui" wrote:

Hi, i need to modify a little bit this formula :
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}. If i enter a
number in cell "E58" the formula to look in column "S" and if i enter another
number to look in column "T".

If in "E58" is "10.000" than the formula to be identical and to look in
"S5:S24".
{=MIN(IF(S5:S24$E$59,(S5:S24)-$E$59,MAX(S5:S24)))+$E$59}

If in "E58" is "15.000" than the formula to look in "T5:T24".
{=MIN(IF(T5:T24$E$59,(T5:T24)-$E$59,MAX(T5:T24)))+$E$59}

Can this be done?
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
Cond. Format Data Bars of range based on values of another range alexmo Excel Worksheet Functions 4 January 16th 09 04:03 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


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