+ Reply to Thread
Results 1 to 6 of 6

Lasts Non Blank Cell

  1. #1
    Registered User
    Join Date
    02-25-2015
    Location
    Atlanta, GA
    MS-Off Ver
    2013
    Posts
    97

    Lasts Non Blank Cell

    I used

    {=MATCH(1,--(A1:A1000=""),0)-1}

    to calculate the number of rows in A till Blank.

    My question is how to add it to B1:B? where ? is the calculated formula above. If the formula above returns 40 I would like to B1:B40

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Lasts Non Blank Cell

    {=b1:index(b:b, match(true, a1:a1000="", 0) -1)}
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Lasts Non Blank Cell

    This should work for numbers or text in column A

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    This sums the returned range
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    02-25-2015
    Location
    Atlanta, GA
    MS-Off Ver
    2013
    Posts
    97

    Re: Lasts Non Blank Cell

    I still am having trouble

    I want everywhere there is a $B$4 to be $B:Lasts Non Blank Cell calculated


    =OFFSET($B$1,MOD(ROW()-ROW($G$1),ROWS($B$1:$B$4)),TRUNC((ROW()-ROW($G$1))/ROWS($B$1:$B$4)),1,1)

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Lasts Non Blank Cell

    not quite sure I understand what you need but maybe this:

    use this formula for numeric values

    ="B:"&MATCH(10^308,B:B)

    for text use this one

    ="B:"&MATCH(REPT("z",255),B:B)

    Data Range
    B
    C
    D
    1
    1
    B:10
    2
    45
    3
    3
    4
    0
    5
    45
    6
    3
    7
    0
    8
    5
    9
    0
    10
    0
    Last edited by AlKey; 10-04-2015 at 10:09 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    02-25-2015
    Location
    Atlanta, GA
    MS-Off Ver
    2013
    Posts
    97

    Re: Lasts Non Blank Cell

    Where do I put it in my formula? How do I replace the 4? I need to double it by 2.

    =OFFSET($B$1,MOD(ROW()-ROW($G$1),ROWS($B$1:$B$4)),TRUNC((ROW()-ROW($G$1))/ROWS($B$1:$B$4)),1,1)4

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculate differnce between 2 dates, but if 1 date cell is blank leave cell blank
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 11:31 PM
  2. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  3. Replies: 3
    Last Post: 01-23-2014, 12:19 PM
  4. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  5. If cell blank OR another cell blank then show blank, if not display value
    By stevop622 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2013, 04:07 AM
  6. separate the first and lasts names from one cell into two cells
    By ConsumeWaffles in forum Excel General
    Replies: 10
    Last Post: 05-18-2008, 05:20 PM
  7. Calculating cells... lasts so long
    By Svea in forum Excel General
    Replies: 0
    Last Post: 11-02-2005, 06:10 PM

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