+ Reply to Thread
Results 1 to 11 of 11

OFFSET - funtion

  1. #1
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    142

    OFFSET - funtion

    Hello to all,

    I have a data table with one row (but will have many others). Within that table I have a column with empty Field. As I input data from left to right, I want the empty field to dynamically fill in the last entry.

    OFFSET(I1,3,0,1,1)

    After reading on the web, I came across a function that can meet my needs but have not been able to make it work. Hopefully some one can guide me.

    I have attached an example spreadsheet with my example of the offset function.
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: OFFSET - funtion

    instead of OFFSET, i would suggest using this array formula before.
    Make sure to use CTRL + SHIFT+ ENTER when entering an array formula. If done correctly it will add { } around the formula.

    In B2:
    =INDEX($C2:$CF2,,MAX(IF(ISBLANK($C2:$CF2),0,COLUMN($C2:$CF2)))-2)
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: OFFSET - funtion

    The problem is that you need to count then number of filled cells in the row that you are in, and this gives a circular reference.

    You could turn iterative calc on> Files>Options>Formulas>Calculation options, and check the Enable iterative calculation checkbox, then use this formula

    =OFFSET($A2,0,COUNTA(2:2)-1,1,1)

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: OFFSET - funtion

    Formula didn't help any more then existing one
    Last edited by Trebor76; 12-30-2019 at 08:01 PM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: OFFSET - funtion

    Please Login or Register  to view this content.
    Ben Van Johnson

  6. #6
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: OFFSET - funtion

    The 3 as 2nd argument is supposed to be the number of entries below I1? Does that mean you want this formula to return the bottommost entry in column I no lower than the row this formula would be in? If so, the formula for row 9 could be =LOOKUP(1,0/(1-ISBLANK(I$2:i9)),I$2:I9) . If that's not what you're after, please provide more details. There's almost certainly a better approach than using OFFSET.

    There's almost never a good reason to use OFFSET. There's usually a way to use INDEX() or INDEX():INDEX() instead. OFFSET is a volatile function. If you use it in a lot of formulas, you can really slow down recalculation.

  7. #7
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: OFFSET - funtion

    You could use this event macro on the sheet in question:

    Please Login or Register  to view this content.
    HTH

    Robert

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: OFFSET - funtion

    Maybe in Cell B2 (non-array formula)

    =LOOKUP(2,1/(C2:XFD2<>""),C2:XFD2)

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: OFFSET - funtion

    Similarly in B2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  10. #10
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: OFFSET - funtion

    Quote Originally Posted by Ace_XL View Post
    Maybe in Cell B2 (non-array formula)

    =LOOKUP(2,1/(C2:XFD2<>""),C2:XFD2)

    Copy down
    OP's workbook doesn't show OP wants to work with multiple columns. Why would this make any sense?

  11. #11
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    142

    Re: OFFSET - funtion

    Wow. Never thought what I thought was simple is a high level. . Looks Like I need to look and analyse for a better understanding of what is being used. Thank thank you. Will test all suggestion..... HAPPY NEW YEAR. p.S. Any suggestion on books that explains the above I can buy? Thank you again.

+ 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. how to lock or freeze today funtion and Now funtion
    By edwest01 in forum Excel General
    Replies: 2
    Last Post: 12-09-2018, 06:35 PM
  2. [SOLVED] How to eliminate the OFFSET funtion from excel equations
    By MattRNR in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2016, 01:03 AM
  3. Select offset variable offset cells
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2014, 06:12 AM
  4. Replies: 3
    Last Post: 06-01-2014, 10:26 AM
  5. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  6. Reformatting - insert formula with offset, then offset to next cell
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 05:41 AM
  7. Replies: 7
    Last Post: 11-04-2008, 06:41 AM

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