Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Counting the number of cells between 2 seperate cells

Hi there,
I have a table that looks like this (2 rows, with 18 numbers each)

32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,26
10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3

(each number is in it's own cell). The table is located in cells I4:AR5.
What I'm looking for is if cell A14 gives the number 19, then cell A15 gives
the number 27, then a formula in cell C15 counts how many cells/numbers are
between 19 and 27 in the table above (starting at the number to the right of
19, so do not include 19, but include 27). The answer should be 8. Also,
the same would apply to the numbers on the bottom. And, I need to be able to
count the cells between top row and bottom row in the same fashion (so if A14
was 32, and A15 was 16, it would count 3). If we need to build more than one
table, that's okay.

Thanks for all the help! I'm stumped on this one!
Matt
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Counting the number of cells between 2 seperate cells

=match(27,i4:AR5,0)-match(19,i4:AR5,0)

"mpenkala" wrote:

Hi there,
I have a table that looks like this (2 rows, with 18 numbers each)

32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,26
10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3

(each number is in it's own cell). The table is located in cells I4:AR5.
What I'm looking for is if cell A14 gives the number 19, then cell A15 gives
the number 27, then a formula in cell C15 counts how many cells/numbers are
between 19 and 27 in the table above (starting at the number to the right of
19, so do not include 19, but include 27). The answer should be 8. Also,
the same would apply to the numbers on the bottom. And, I need to be able to
count the cells between top row and bottom row in the same fashion (so if A14
was 32, and A15 was 16, it would count 3). If we need to build more than one
table, that's okay.

Thanks for all the help! I'm stumped on this one!
Matt

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Counting the number of cells between 2 seperate cells

Hey Nathan, thanks for your suggestion, but it didn't work. I get #N/A
everytime. I tried switching the 27 and 19, different ranges, always get the
NA error. Any thoughts?

Thanks,
Matt


"nathan_savidge" wrote:

=match(27,i4:AR5,0)-match(19,i4:AR5,0)

"mpenkala" wrote:

Hi there,
I have a table that looks like this (2 rows, with 18 numbers each)

32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,26
10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3

(each number is in it's own cell). The table is located in cells I4:AR5.
What I'm looking for is if cell A14 gives the number 19, then cell A15 gives
the number 27, then a formula in cell C15 counts how many cells/numbers are
between 19 and 27 in the table above (starting at the number to the right of
19, so do not include 19, but include 27). The answer should be 8. Also,
the same would apply to the numbers on the bottom. And, I need to be able to
count the cells between top row and bottom row in the same fashion (so if A14
was 32, and A15 was 16, it would count 3). If we need to build more than one
table, that's okay.

Thanks for all the help! I'm stumped on this one!
Matt

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
Counting the number of cells that have the same value JCM Excel Worksheet Functions 1 September 4th 07 02:24 AM
Counting the number of same value cells Richard Excel Discussion (Misc queries) 1 April 27th 07 11:37 PM
Counting number of cells that make up a sum.. tim m Excel Discussion (Misc queries) 2 September 21st 06 02:55 PM
Counting the number of cells within a certain hour. Joker Excel Discussion (Misc queries) 10 February 18th 06 03:04 PM
Counting the number cells between two dates Dave Excel Discussion (Misc queries) 3 March 16th 05 02:30 PM


All times are GMT +1. The time now is 02:37 AM.

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"