+ Reply to Thread
Results 1 to 8 of 8

Returning a last cell value to another sheet

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Returning a last cell value to another sheet

    Hi all,

    Cant remember how I did this all them years ago....

    Sheet 2 column H......I want to return the LAST cell value from there to a cell in sheet 1...lets say sheet 1 col b cell 24.

    So if the last input in sheet2 col H was in row 24 I want to return that value.

    Thanks all.
    Last edited by hammer2; 11-26-2011 at 09:39 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Returning a last cell value to another sheet

    Like this?
    Attached Files Attached Files

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Returning a last cell value to another sheet

    Would this value be text, numbers, or either? For text, use =INDEX(Sheet2!H:H,MATCH(REPT("z",255),Sheet2!H:H)). For numbers, use =Index(Sheet2!H:H,Match(99^99,Sheet2!H:H)). For both, use =Index(Sheet2!H:H,Max(MATCH(REPT("z",255),Sheet2!H:H),Match(99^99,Sheet2!H:H)))
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Returning a last cell value to another sheet

    Try this, it gets the last numeric value in column H sheet 2

    =INDEX(Sheet2!H:H,MATCH(3E+100,Sheet2!H:H,1))

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Returning a last cell value to another sheet

    Try these,

    If it is for number,

    =LOOKUP(9E300,Sheet2!H:H)

    If it is Text,

    =LOOKUP(REPT("z",255),Sheet2!H:H)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Returning a last cell value to another sheet

    All these years ago?
    I'm going to guess you now have 2007 or above, then in say "Sheet 1" B:24
    Please Login or Register  to view this content.
    If you are still using 2003 then you need to use
    Please Login or Register  to view this content.
    This is overkill but it should handle Text, Numbers,and Blanks.
    Last edited by Marcol; 11-25-2011 at 10:07 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Returning a last cell value to another sheet

    If you have numbers & texts mixed,

    If you are on XL2007 or later,

    =INDEX(Sheet2!H:H,MAX(IFERROR(MATCH(9E300,Sheet2!H:H),0),IFERROR(MATCH(REPT("z",255),Sheet2!H:H),0)))

    The following method will work all XL versions.

    Define 2 named ranges,

    Name: LastNumber
    Refers to: =MATCH(9E300,Sheet2!$H:$H)

    Name: LastText
    Refers to: =MATCH(REPT("z",255),Sheet2!$H:$H)

    Then use like,

    =INDEX(Sheet2!H:H,MAX(IF(ISNUMBER(LastNumber),LastNumber),IF(ISNUMBER(LastText),LastText)))

  8. #8
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Returning a last cell value to another sheet

    Well thank you all very much!!....all ways seem to work. Sorry about not updating my version btw...

+ 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