#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default Need an Equation

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Need an Equation

PLEASE HELP

I did in your other post and have answered your follow up question

"Raz" wrote:

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default Need an Equation

thanks Mike, I appriciate your help.
but there is a little problem. If col B has numbers in decending order, the
I am not getting the correct results. (I should have mentioned earlier that
col B may have decending or accending or numbers without order, bassically
could be any values)

Other than that your equation works fine. Please help to solve this little
prob.
thanks again.







"Mike H" wrote:

PLEASE HELP


I did in your other post and have answered your follow up question

"Raz" wrote:

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Need an Equation

Hi,

Maybe this

=LOOKUP(C1,A1:A9,OFFSET(A1:A9,1,1))

Mike

"Raz" wrote:

thanks Mike, I appriciate your help.
but there is a little problem. If col B has numbers in decending order, the
I am not getting the correct results. (I should have mentioned earlier that
col B may have decending or accending or numbers without order, bassically
could be any values)

Other than that your equation works fine. Please help to solve this little
prob.
thanks again.







"Mike H" wrote:

PLEASE HELP


I did in your other post and have answered your follow up question

"Raz" wrote:

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default Need an Equation

Thanks Again

"Mike H" wrote:

Hi,

Maybe this

=LOOKUP(C1,A1:A9,OFFSET(A1:A9,1,1))

Mike

"Raz" wrote:

thanks Mike, I appriciate your help.
but there is a little problem. If col B has numbers in decending order, the
I am not getting the correct results. (I should have mentioned earlier that
col B may have decending or accending or numbers without order, bassically
could be any values)

Other than that your equation works fine. Please help to solve this little
prob.
thanks again.







"Mike H" wrote:

PLEASE HELP

I did in your other post and have answered your follow up question

"Raz" wrote:

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need an Equation

Hi,

You can try this array formula (Ctrl+Shift+Enter). I am assuming that the
first 2 columns are in range D9:E17

INDEX(D9:E17,MATCH(MIN(IF(($D$9:$D$17-$D$200),$D$9:$D$17-$D$20)),$D$9:$D$17-$D$20,0),2)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Raz" wrote in message
...
PLEASE HELP

Need an equation in D1 to find the number immediately greater then number
in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the
number
beside in col B is 79, then the equation in D1 should give 79. (Column B
has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Need an Equation

On Wed, 18 Feb 2009 13:49:01 -0800, Raz wrote:

PLEASE HELP

Need an equation in D1 to find the number immediately greater then number in
col C, then copy the number beside from col B to D.

For example:
for 500 in col C, immediate greater number in col A is 569.3 and the number
beside in col B is 79, then the equation in D1 should give 79. (Column B has
numbers that sometime increasing sometime decreasing)

A B C D
71.162 100 500
142.325 98 100
213.487 95 200
284.65 90 300
355.813 88 400
426.975 85 500
498.138 81 600
569.3 79 700
640.462 76 800



=INDEX($B$2:$B$10,MATCH(C2,$A$2:$A$10,1)+1)

Of course, since the highest number in column A is 640.462, there will be no
matches for numbers 700 and 800 in Column C.

As written, the formula will return an error.

What do you want to do if there is no higher number?
--ron
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
Help with an equation Jeff Excel Discussion (Misc queries) 4 October 16th 08 10:00 PM
Equation Help sarah814 Excel Discussion (Misc queries) 2 June 16th 07 03:51 AM
Equation Editor- problem when editing an equation Gaby L. Excel Discussion (Misc queries) 0 September 27th 05 09:24 PM
Equation paulo_jorge_34 Excel Discussion (Misc queries) 3 June 14th 05 06:53 PM
How do I peg 4 col in an equation so when i add one col it only l. AVeraging Columns Excel Worksheet Functions 1 November 12th 04 07:10 PM


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