+ Reply to Thread
Results 1 to 2 of 2

Putting Managers underneath areas

  1. #1
    Registered User
    Join Date
    02-08-2006
    Posts
    3

    Putting Managers underneath areas

    Hi All,

    Apologies if this is really easy to do, i've been sitting here for hours trying to work this out but have got no where

    I have a list of canteen managers and the areas they belong to next to it, for a report i am trying to create either a formula or macro that will take each manager and copy it to the right column for the area. I've attached an example to show you what i'm trying to do.

    Does anyone know if you can create a macro that will go to each cell and assign it to the relevant column?

    Thank you for all your help in advance,

    Sunny
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    Assuming your Headers are in Row 1
    and your data as shown on the example, are in columns A, B, C & D

    in C2 enter (as an array Ctrl-Shift-Enter)
    =IF(ROWS($1:1)<=COUNTIF($A$2:$A$8,C$1),INDEX($B$2:$B$8,SMALL(IF($A$2:$A$8=C$1,ROW(B$2:B$8)-ROW(B$2)+1),ROWS($1:1))),"")

    then copy & paste down column C and across into D (& E if needed for Mrs C)

    Your column Headings need to be the same as the data in column A. "District-Mr A" , not "Mr A".

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1