+ Reply to Thread
Results 1 to 8 of 8

last update value

  1. #1
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22

    last update value

    Hi, my excel workseet have 12 column of column a,b,c,d,e,f,g,h,i,j,k,l. but when i input the value to each column ,only the last value will show up in the cell p3 how can i do..eg,
    if the last cell input in column g1=615 the cell p3 will be=615
    if the last cell input in column k1=850 the cell p3 will be=850
    if the last cell input in column L1 =890 the cell p3 will be=890
    Please see the attach file ,thank
    Attached Files Attached Files
    Last edited by Sam.K; 01-06-2009 at 07:18 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    You would use the Change event to capture changes in the range A1 to L1 and copy the change to P3.

    Right click sheet tab and pick View Code.
    Paste the following.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    hi, thank for your reply
    your solution is not my concept, when i delete the L1 value cell p3 must be=cell k1 in which will be =850 not be the blank cell.
    can any way to cell the code.

    and have another way to do by the function code not vba.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    This will return last value in range, as long as all cells to left are filled.

    =INDEX(A1:L1,1,COUNT(A1:L1))

  5. #5
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    Hi, thank your last code is my concept . it is very best.
    but please help me some more that in the case of ...
    when my 12 column cell value is in cell h1,l1,p1,t1,x1,ab1,af1,aj1,an1,ar1,av1 and az1
    how can i change your last code to get the result.
    thank.
    please see the attach file
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Try this,

    =INDEX(E1:AZ1,1,COUNT(H1:AZ1)*4)

    In future please post your actual question rather than revealing bits of information as you go.

  7. #7
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    Thank, andy

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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