+ Reply to Thread
Results 1 to 8 of 8

Three cells with the same value all the time

  1. #1
    Registered User
    Join Date
    08-11-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2003
    Posts
    6

    Three cells with the same value all the time

    hi, i have problem...

    lets say i have three cells ranges (A1:A100,B1:B100,C1:C100). I want them to be the same value (A1=B1=C1, A2=B2=C2,...) and to update after changes automatically doesn't matter which one (A1, B1 or C1)i change. I googled a bit and i found that macro can do that, but the given examples was not enough. So maybe someone could help me?

  2. #2
    Registered User
    Join Date
    08-11-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Three cells with the same value all the time

    Hi,

    Please Login or Register  to view this content.
    Regards,

    Darzou

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Three cells with the same value all the time

    Hello & Welcome to the Forum,

    Try...

    Please Login or Register  to view this content.
    Paste code in a Sheet module
    • Where to paste code
    • Highlight macro to copy >> Ctrl + C >> Open your workbook
    • Right click on sheet tab >> View Code >> opens the Visual Basic Editor (VBE)
    • Ctrl + R >> opens the Project Explorer (if not already open on left side of screen)
    • Paste code >> Ctrl + V (right side of screen)
    • Alt + Q >> exits VBE and returns to Excel
    • Now simply make a change in target cell
    HTH
    Regards, Jeff

  4. #4
    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: Three cells with the same value all the time

    Or maybe this
    Please Login or Register  to view this content.
    Or this variation of Darzous' code
    Please Login or Register  to view this content.
    Last edited by Marcol; 08-11-2013 at 06:18 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.

  5. #5
    Registered User
    Join Date
    08-11-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Three cells with the same value all the time

    i used jeffrey's code, its working. Thanks. But...

    What if i would like to have 4 equal cells? I mean maybe you could explain what is exactly happening in Select case part. I want understand the code and manage to change it myself when i want

  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: Three cells with the same value all the time

    That's why I offered the last two solutions, just change the width of the range.
    Change Range("A1:C1000") to Range("A1:D1000") or whatever. The first column needs not be "A"
    The rest of the code is based on the range position and dimensions.
    Last edited by Marcol; 08-12-2013 at 07:19 AM.

  7. #7
    Registered User
    Join Date
    08-11-2013
    Location
    Lithuania
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Three cells with the same value all the time

    Thanks guys but i have one more question. Rather similar but more difficult. Hope its possible to do that.
    I have this worksheet https://dl.dropboxusercontent.com/u/...6/problem.xlsx

    Here we have sports results in two different tables. Left one is in groups, right is done according to a schedule. Similar like in previous situation i want to have the same value all the time in "Score" columns. Right table is made with index-match function (same as vlookup). So for example i want that values in cells J33 and V12 would be the same. But if i change number (column D) do a different value, right table should also catch its correct value. In a worksheet score is with index-match function but it should just a value. The main idea is that i want to able to add result to each of those two tables and no needing to correct anything after that

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Three cells with the same value all the time

    Hi McLareNas,

    As this question seems as it will differ from the original, please start a new thread.

    Also, it would be better if you attach your file here on the forum as some people may not be able to reach the site you reference, and therefore, could potentially narrow the scope of help you could receive.

+ 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. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  2. Wait time but without freezing (time to dowload data in cells)
    By bryan444 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2012, 10:39 AM
  3. [SOLVED] Find cells within 24 hour time range, time can go to next day
    By LANB5669 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2012, 07:49 PM
  4. [SOLVED] VBA to calculate the amount of time that falls between the time recorded in two cells.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2012, 02:39 PM
  5. macro to compare time between two cells if time matches output in third cell
    By kshitij_dch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2012, 07:09 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