+ Reply to Thread
Results 1 to 6 of 6

Grab text from another sheet based on data in current sheet.

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    10

    Grab text from another sheet based on data in current sheet.

    Hello,

    Need help with attached workbook.


    I need the Cost Center Names located on Sheet 3 in Column B to appear in Sheet 1 Column A. The names are based on the Cost CTR Number on Sheet3ColumnA and Must Match Sheet1ColumnB


    Workbook Attached.

    Please Help!

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Grab text from another sheet based on data in current sheet.

    You have a problem with the data on sheet 3. There are many instances of multiple names for Cost Center Numbers. In addition, there are over 400 duplicates not including the aforementioned names.

    The matches in this file are for only the first encounter with the number on sheet3
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Grab text from another sheet based on data in current sheet.

    There is also a problem with the Cost Ctr numbers on Sheet1. There are multiple spaces after many if not all the numbers in column B. I used the TRIM function in the formula as a quick fix for that.

  4. #4
    Registered User
    Join Date
    04-08-2014
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Grab text from another sheet based on data in current sheet.

    Thank you so much newdoverman!!

  5. #5
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Grab text from another sheet based on data in current sheet.

    As pointed out above, there are spaces in column B. Excel is very specific when looking up items, therefore:

    "H220 " does not agree to "H220"

    You need to remove these spaces using the TRIM() function. The below shows the amounts trimmed in a separate column, however you can put them in the lookup function aswell.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-08-2014
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Grab text from another sheet based on data in current sheet.

    Thank you so much Xx7

+ 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. [SOLVED] Run recorded macro based on current sheet, not the original sheet
    By magillmjl in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2012, 06:23 PM
  2. grab data from one sheet and put it into another
    By ecrader in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2009, 07:22 PM
  3. Replies: 3
    Last Post: 11-04-2009, 12:05 PM
  4. Pulling Data From Sheet To Sheet Based on Text
    By jacobingalls in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-28-2009, 12:50 PM
  5. Pulling Information in seperate sheet based on data in current sheet
    By joekunin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-03-2009, 05:06 AM

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