LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Relative position of Employees

I was waiting to see if you had success with Kostis' suggestion.

Thanks for the feedback!

Biff

"Bob Davison" wrote in message
...
Thanks guys-

I think I figured out my second question.

IF(B1="A",MAX(INDEX((C2:C$9<=C1)*(B2:B$9="B")*ROW( B2:B$9),,1))-ROW()+1,"")



Not an array.



Thanks for taking the time to help me.



Bob




Maybe this *array* formula?

=ROW()-MATCH(MAX(IF(($B$1:$B9="A")*($C$1:$C9<C9),$C$1:C9) ),IF($B
$1:$B9="A",$C$1:$C9),0)

This formula is attempts to work for employees of "B" and answer your
originally posted question. For employee 9 it returns 3, because the
latest-hired employee of "A", hired before E#9 is 3 rows above. Are
more senior members higher on the list? Is seniority based on
something else than hiredate?

If I change MAX to MIN it returns 6 for E#9 and 5 for E#8, which is
probably the difference of 1, if you count the present number or only
want the offset. In the latter case subtract 1 from the entire
formula.

HTH
Kostis Vezerides







 
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
Excel Formula using relative position of cells in two different worksheets David Virgil Hobbs Excel Discussion (Misc queries) 1 December 14th 06 03:36 AM
Excel Formula using relative position of cells in two different worksheets David Virgil Hobbs Excel Worksheet Functions 1 December 14th 06 03:36 AM
Visual Basic Macros, relative position [email protected] Charts and Charting in Excel 3 November 14th 06 11:33 PM
Displaying a cell relative to the position to another cell Tibbs Excel Discussion (Misc queries) 2 July 21st 06 08:28 AM
Relative Cell position NOT working with or without macro Scratching my Head Excel Discussion (Misc queries) 6 May 30th 05 06:12 PM


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