+ Reply to Thread
Results 1 to 5 of 5

Using cell data to update part of a string on multiple cells

  1. #1
    Registered User
    Join Date
    07-10-2015
    Location
    Canberra, Australia
    MS-Off Ver
    2010
    Posts
    2

    Using cell data to update part of a string on multiple cells

    Hi,

    I'm trying to find a formula or macro to update multiple cells with the text in one cell.

    I currently have about 70 sheets with varying number of tables on each sheet, all with different titles, but including the same month and year in the title ie a title might be "Population of children 0-12 years, by state or territory: July2015"

    I want to be able to update one cell on the first sheet with a particular date, eg cell A1 will be "Reported Month" and cell A2 will be "July2015" and then this date will populate into each table title on all sheets. So when I change it each month, I only have to change it in one place.

    Can anyone help me with this?

    Much appreciated!
    Caitlin

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Using cell data to update part of a string on multiple cells

    Hi Caitlin29,

    Welcome to the forum!!

    If you enter the date as a string, use this formula to put the date from cell A2 of Sheet1 into a your heading example above (change the sheet name to suit):

    ="Population of children 0-12 years, by state or territory: " & Sheet1!A2

    If you enter the date as a date, use this formula to put the date from cell A2 of Sheet1 into a your heading example above (change the sheet name to suit):

    ="Population of children 0-12 years, by state or territory: " & TEXT(Sheet1!A2,"mmmmyyyy")

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Using cell data to update part of a string on multiple cells

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
    Remember to desensitize the data.

    ViewPic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Registered User
    Join Date
    07-10-2015
    Location
    Canberra, Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Using cell data to update part of a string on multiple cells

    That worked, just had to put ' ' around the sheet name.

    Thanks so much for your help Robert!

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Using cell data to update part of a string on multiple cells

    That worked, just had to put ' ' around the sheet name.
    That's because you have a space in the sheet name you're referencing.

    I'm glad we got it solved for you

    Robert

+ 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: 1
    Last Post: 07-03-2014, 04:32 AM
  2. Update Part description in multiple files
    By jonathanrgz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2013, 05:19 PM
  3. extract part of string with multiple separators
    By orimpila in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2013, 07:24 AM
  4. [SOLVED] Identifying part of a string with multiple cases
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-27-2013, 07:32 PM
  5. How to match if cell contains some part of the string from other cells in other column?
    By kalucharan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 05:40 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