Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I need a help formula

Hi,

I need a formula to help on the following:

I have this range of numbers: 43, 50, 57, 66, 76, 87

And if I entered 43 in a cell and 76 in another cell, I need a 3rd
cell to tell me that the distance is 4 steps!

Thanks in advance.

Khaledity
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default I need a help formula

On Thu, 12 May 2011 07:32:24 -0700 (PDT), Khaled wrote:

Hi,

I need a formula to help on the following:

I have this range of numbers: 43, 50, 57, 66, 76, 87

And if I entered 43 in a cell and 76 in another cell, I need a 3rd
cell to tell me that the distance is 4 steps!

Thanks in advance.

Khaledity


Assuming your range of numbers is entered in a range of contiguous cells:

=MATCH(Number2,RangeOfNumbers,0)-MATCH(Number1,RangeOfNumbers,0)

This will given an error if Number 1 or Number 2 do not match exactly one of the values in your Range Of Numbers. If you require different behavior, you will need to let us know.

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



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