+ Reply to Thread
Results 1 to 6 of 6

Find a column and return values

Hybrid View

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    Ireland
    Posts
    3
    Sorry
    Gettin confused, I have uploaded an example

    F1=01/11/2008
    AI=30/11/2008

    I know that the first day of the month will always be in F1
    So A1=F1
    C2=DATE(YEAR(A1),MONTH(A1)+1,0)

    C2 is now 30/11/2008
    I need to search from F1 to AI to find the column that 30/11/2008 is in
    I then need to get all the values from that column and place them in A23 to A42
    So i need to get the values from AI2 to AI21 and copy them to A23 to A42

    The column position of the last day of the month changes every .month
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    A23:
    =INDEX($F$2:$AJ$21,ROW()-22,DAY($C$2))

    copy down to A42.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    or in a23
    =HLOOKUP($C$2,$F$1:$AJ$21,ROW()-21,FALSE) dragged down

  4. #4
    Registered User
    Join Date
    11-03-2008
    Location
    Ireland
    Posts
    3
    Thanks Folks
    Thats great

+ 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