+ Reply to Thread
Results 1 to 6 of 6

Formula to pull text from another cell?

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    58

    Question Formula to pull text from another cell?

    Is it possible to have a formula that will pull text from another cell into the formula? I have one column that is a list of last names which are also tabs in my workbook. I want formulas that will take that name and then add a cell to it. For example if the last name is Jenkins I want the formula to be =Jenkins!B1. Then the next name in the column is Jones so it would be =Jones!B1 then =Smith!B1 etc. I could do this manually but it will take forever because there are over 100 names.

    I figured once I started typing them in I might get lucky and it would autofill but it doesn't seem to recognize the pattern. Creating three and dragging it down just repeats those same three. I just want it to be the name in the lookup table which is in column H and then !b1 to pull what's in b1 of each worksheet into column I.

    Any ideas?

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Formula to pull text from another cell?

    Try the Indirect Function.

    Assuming you have Jenkins in H2, then try this......

    In I2
    Please Login or Register  to view this content.
    and copy down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    04-11-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Formula to pull text from another cell?

    Hmm thought I replied but I don't see the post anymore.

    That worked wonderfully for most of them. There are some that say #ref though - looks like anyone with an apostrophe in the name or a two-word name. Any workarounds for that? I tried quotes but it didn't seem to help.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Formula to pull text from another cell?

    In that case try this....

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-11-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Formula to pull text from another cell?

    It works on the two word names but not the apostrophes. I think I'll just edit the worksheet names to take those out though since those seem to always be an issue. Thank you SO much!

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Formula to pull text from another cell?

    If the apostrophe appears both in name in the cell and in sheet's name, try the following formula...

    Please Login or Register  to view this content.
    This should work for all the scenarios i.e. if sheet contains a single word or more than one word or an apostrophe in it's name.

+ 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: 02-01-2016, 03:47 PM
  2. vba or formula to pull text out of cell
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2015, 06:55 PM
  3. [SOLVED] Excel does not pull value from the cell - appears to pull formula
    By enjoyexcel in forum Excel General
    Replies: 2
    Last Post: 01-06-2015, 11:42 AM
  4. [SOLVED] Pull Text Not Formula
    By Jarrettm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-12-2014, 09:11 PM
  5. [SOLVED] Pull text from one cell into formula in a differenet cell
    By tazman1911 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 03:08 PM
  6. Code/Solution To Search All Text in a Cell and Pull UniqueID Corresponding to the Text
    By brandnew22 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-06-2013, 10:56 AM
  7. Replies: 0
    Last Post: 06-22-2006, 03:20 PM

Tags for this Thread

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