+ Reply to Thread
Results 1 to 12 of 12

How To Update Single Cell, Not All

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    How To Update Single Cell, Not All

    Group,

    I'm using Excel 2003 on a machine running Win XP Home. In a column I have the following in each cell down following I18 :

    =IF(ISBLANK(I18),"",NOW())

    In column J at row 18 I scan a barcode. Each time I scan the barcode and enter the data into my spreadsheet all the cells with the above If statement change at the same time. I just want the row that I send my scanned data to change its time. Why are all of the rows changing and how do I fix this annoying problem.

  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
    You would need a deliberate circular reference and set Excel for one iteration.

    Better would be to use VBA and the worksheet change event. If you explain a little more what you're doing (or post the workbook), I'll give you an example.

  3. #3
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Scanning Updates All

    See attached spreadsheet. Place anything in column J and everything changes at the same time.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Place anything in column J and everything changes at the same time.
    I assume you mean column I. Anyway, that's the way Excel works.

    Try this in the ThisWorkbook module:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you don't need to update all the cells at once and want to keep the general format you could try this

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question All Are Updating

    Column I inputs continue to change all of column B. See attached. Am I doing something wrong in the module?
    Attached Images Attached Images

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Remove the code from ThisWorkbook and then place in sheet Name Macro88.

    http://www.contextures.com/xlvba01.html#Worksheet

    VBA Noob
    Last edited by VBA Noob; 12-30-2007 at 03:17 PM.

  8. #8
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Smile It Worked!!

    It worked. I guess I don't understand how it works, but I'm functional. Thanks to you and shg I'm rolling. Both of you have a nice holiday.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Quote Originally Posted by Noob
    Remove the code from ThisWorkbook and then place in sheet Name Macro88.
    My mistake, thanks Noob.

  10. #10
    Registered User
    Join Date
    02-16-2013
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How To Update Single Cell, Not All

    Quote Originally Posted by ajocius View Post
    Group,

    I'm using Excel 2003 on a machine running Win XP Home. In a column I have the following in each cell down following I18 :

    =IF(ISBLANK(I18),"",NOW())

    In column J at row 18 I scan a barcode. Each time I scan the barcode and enter the data into my spreadsheet all the cells with the above If statement change at the same time. I just want the row that I send my scanned data to change its time. Why are all of the rows changing and how do I fix this annoying problem.
    So do you know how to update multiple cells which are not connected?????


    Ah, I forgot to see the date, again! Ok, just forgive me for one more time, please!!
    Last edited by caryfloric; 07-03-2014 at 12:26 AM.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: How To Update Single Cell, Not All

    hi caryfloric and welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

    Also, this threads is almost 7 years old, I doubt it is still being monitored
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  12. #12
    Registered User
    Join Date
    02-16-2013
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How To Update Single Cell, Not All

    Thanks for reminding me. Ok, I will start a new topic, thanks.

+ 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