Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Counting Positions

How would you count positions or depth between identical numbers.

Using VBA how would count the sum position difference of rows for number 11?
regardless of the rows and columns, keeping within range
of A1 ... D50 In this case number 11 has 4 positions count.

First scenerio:

A B C D
1 11
2
3
4 11
5

A B C D
100 Count 4

With thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Counting Positions

Hi smandula,

Have you try using "=COUNIF(A1:D5,"11")" on cell?

"smandula" wrote:

How would you count positions or depth between identical numbers.

Using VBA how would count the sum position difference of rows for number 11?
regardless of the rows and columns, keeping within range
of A1 ... D50 In this case number 11 has 4 positions count.

First scenerio:

A B C D
1 11
2
3
4 11
5

A B C D
100 Count 4

With thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Counting Positions

Found solution using Match function

With thanks

"smandula" wrote in message
...
How would you count positions or depth between identical numbers.

Using VBA how would count the sum position difference of rows for number
11?
regardless of the rows and columns, keeping within range
of A1 ... D50 In this case number 11 has 4 positions count.

First scenerio:

A B C D
1 11
2
3
4 11
5

A B C D
100 Count 4

With 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
sum of text positions Kevin Excel Worksheet Functions 10 December 11th 08 09:34 PM
1st and 2nd.... positions gorro Excel Discussion (Misc queries) 21 January 21st 08 06:35 AM
Lon Lat positions in chart Peter[_3_] Charts and Charting in Excel 1 August 10th 07 08:14 PM
Positions of Comments AizA Excel Worksheet Functions 0 June 28th 05 12:38 AM
positions Mark[_17_] Excel Programming 2 December 5th 03 06:28 AM


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