+ Reply to Thread
Results 1 to 7 of 7

Returning most recent daily data in a column if blanks in column

  1. #1
    Registered User
    Join Date
    11-04-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    24

    Returning most recent daily data in a column if blanks in column

    First time user.....(already posted in access by mistake!)

    I know this is probably easy to most users of this forum but could someone explain how I return the most recent days data in a column if there are spaces in the column and the figures I need only appear at every subtotal row? There can be anything from 5 to 20 rows for each subtotal.

    I have attached a sample worksheet. I want to return in H3 & I3 the most recent date %figure for each column

    If more info need please let me know

    Thanks

    Innes
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Returning most recent daily data in a column if blanks in column

    If there's only one subtotal row per day, how about:

    =IF(H2=MAX($A:$A),INDEX($A:$I,MATCH("Grand Total",$A:$A,0)-1,COLUMN()),INDEX($A:$I,MATCH(H2+1,$A:$A,0)-1,COLUMN()))

  3. #3
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Returning most recent daily data in a column if blanks in column

    see attatchment
    Attached Files Attached Files
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  4. #4
    Registered User
    Join Date
    11-04-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Returning most recent daily data in a column if blanks in column

    Hello,

    Great thanks. It works on my example worksheet but can't get it to work in the worksheet I am using but I'll crack on with it and try a few things. Thanks for your help

  5. #5
    Registered User
    Join Date
    11-04-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Returning most recent daily data in a column if blanks in column

    Hello again,

    I've tried it but still not working. If I send you my actual worksheet could you have a look at the reference I've adapted from yours (it's in cell P3 now).

    Thanks again, much appreciated.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Returning most recent daily data in a column if blanks in column

    Didn't account for there being spaces before the Grand Total line.

    However, I also didn't notice the subtotal lines said Total at the end in col A. So this can be simplified to:

    =INDEX($A:$R,MATCH(TEXT(P2,"dd/mm/yyyy")&" Total",B:B,0),COLUMN())

  7. #7
    Registered User
    Join Date
    11-04-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Returning most recent daily data in a column if blanks in column

    Lovely, works now. Thanks again

+ 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