+ Reply to Thread
Results 1 to 5 of 5

Make a cell the first value <> null in other cell

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Make a cell the first value <> null in other cell

    Hi people, i need some help here...

    I have a spreadsheet connected to a program and the Values of A1 Cell are always changing, sometimes null and other times numbers.
    What I want to do is to have other cell(A2) to be the first value not null that A1 displays. Is that possible without macros? Can anyone tell me how can I do it? Even if it is only possible with macros..

    Thanks alot!

  2. #2
    Forum Contributor
    Join Date
    11-04-2011
    Location
    pak
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Make a cell the first value <> null in other cell

    hi, you sheet will not change any value in any other cell or any other sheet of this work book. only cell A1 will change, and A2 will keep the first non-NULL value?

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Make a cell the first value <> null in other cell

    Quote Originally Posted by shaukat View Post
    hi, you sheet will not change any value in any other cell or any other sheet of this work book. only cell A1 will change, and A2 will keep the first non-NULL value?
    Yes, thats what I want to do! Put A2 as the first non-NULL value in A1 (value keeps changing). Is it possible?

  4. #4
    Forum Contributor
    Join Date
    11-04-2011
    Location
    pak
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Make a cell the first value <> null in other cell

    go to visual basic editor in your workbook and click on the sheet where you want to workout this, paste below code try it.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-22-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Make a cell the first value <> null in other cell

    Thanks a lot mate it works perfect!

    Best Regards from Portugal

+ 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