+ Reply to Thread
Results 1 to 11 of 11

Macro - how to auto populate the data, based on the previous cell values

  1. #1
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Macro - how to auto populate the data, based on the previous cell values

    Please view the post 5 for the actual issue. This being my first post could not update it correctly. I have put my views int he 5th post which will be more clear.
    Attached Files Attached Files
    Last edited by Avinash Kumar; 08-05-2009 at 04:29 AM. Reason: updating the required information

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Macro - how to auto populate the data, based on the previous cell values

    Hi Avinash,

    This can be done without macros by entering the following formula into column c & copying it down.
    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Re: Macro - how to auto populate the data, based on the previous cell values

    I required a macro code to do it. I have a huge list of departments and where in the text in the column C will be changing as per the requirement.

    I will give you another example. I am attaching the template in this thread.

    Based on the values of the column A and Column B, the Column C should populate the City name.

    Awaiting your reply
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Arrow Re: Macro - how to auto populate the data, based on the previous cell values

    Hi,

    I need a pro to assist me with the above situation.

    AB

  5. #5
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Exclamation Re: Macro - how to auto populate the data, based on the previous cell values

    Hi Rob,

    My apologies for not being clear. This being my first post, I was not able to provide you with adequate data.

    Well, what I need is, the cell in the Column C to be auto populated based on the values entered in the Cells pertaining to Column A and Column B.

    There is a chart designed for the Cell values of Column C based on its Column A and Column B inputs.

    I am attaching the detailed template in this thread. Please review the same and let me know how to achieve it using the Macro but not with the excel functions.

    Regards,
    Avinash.
    Attached Files Attached Files

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro - how to auto populate the data, based on the previous cell values

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Please remove the word macro from the title
    Hope that helps.

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

    Free DataBaseForm example

  7. #7
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Macro - how to auto populate the data, based on the previous cell values

    Hi
    try the macro in the attached file
    Ravi
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-17-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    13

    Re: Macro - how to auto populate the data, based on the previous cell values

    Quote Originally Posted by ravishankar View Post
    Hi
    try the macro in the attached file
    Ravi
    Hi Ravi,

    I really appreciate your efforts to assist me. This could possibly be one of the solutions.

    The problem here with this code is that it refreshes the entire column when I have to update new entries.

    Is there any way where we can be able to directly populate the cell values in column C or just refresh the cells which are empty but not the cells which are already populated.

    Regards,
    Avinash

  9. #9
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro - how to auto populate the data, based on the previous cell values

    Hi Avinash Kumar

    Some thing from left field
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  10. #10
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Macro - how to auto populate the data, based on the previous cell values

    hi Avinash,

    Sorry for the lack of response, I have not had access to a computer over the past week. Do you still need help with this problem?

    If no more help is needed, can you please post your solution & mark this thread as solved?

    Rob

  11. #11
    Registered User
    Join Date
    06-08-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro - how to auto populate the data, based on the previous cell values

    Hi Rob,

    I didn't post my problem because it was similiar to Avinash's. Just wanted to say thanks your solution helped me solve my problem! Again, thanks!

    Judy

+ 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