+ Reply to Thread
Results 1 to 11 of 11

Extraction of specific data after # Combining multiple worksheets to master file

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Extraction of specific data after # Combining multiple worksheets to master file

    Hi

    Have some cells that I need to extract some data from.

    Iron Man #4
    Iron Man #5
    Iron Man #6

    I need to just extract the no after # up to 3 to 4 digits long.

    While I am here also, I have 3 spread sheets that only common factor is an order reference no.

    ie. AUG1123456

    How can I combine the date so it matches up perfectly in a master file.

    ie

    Spreadsheet 1 has AUG1123456 Iron Man 5
    Spreadsheet 2 has AUG1123456 ISBN No 12354654546498
    Spreadsheet 3 has AUG1123456 Tony Stark dies in a battle with hulk

    I want it to look like AUG1123456 Iron Man 5 12354654546498 Tony Stark dies in a battle with hulk

    in the master file
    Last edited by king10001; 08-17-2013 at 06:18 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    Thanks

    Try his, copied down...

    =MID(A1,SEARCH("#",A1,1)+1,99)

    If you want the result to be a value you can calc with...
    =MID(A1,SEARCH("#",A1,1)+1,99)*1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    superb it works

    If I wanted to take in my example Iron Man #5, and what to take the Iron Man part as well what am i changing in the code, basically everything to the left of #

  4. #4
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    =LEFT(D2,SEARCH("#",D2,1)-1)

    Got it with.

  5. #5
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    help.xlsx

    Attached is an example, I have looked but cant find solution. If someone does post can they just explain what is actually happening so I get a better understanding on whats going on

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    Did you upload the right file? That 1 has nothing to do with what you poasted above, and also - as far as i can see - contains no formulas at all?

  7. #7
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    is it combining into one sheet, do I need another thread for this.

    So far I am about here

    =LOOKUP(A1:A6,Sheet2!A1:A6,Sheet2!B3:B6)

    Its the 2nd part to my Question.

    All I need to do is take the price from one sheet and get it into the correct section based on Code
    Last edited by king10001; 08-17-2013 at 05:24 PM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    OK, Based on the data provided, if its the values in orange you want returned, try this, copied down...

    =VLOOKUP(A3,Sheet1!$A$3:$B$6,2,0)

    If you have more columns of data you need to return, adjust the range (Sheet1!$A$3:$B$6) as needed, and increase the column number (,2,)

  9. #9
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    Thanks FDibbins, spread sheet coming together.

    On a general generic question on the =MID(A1,SEARCH("#",A1,1)+1,99) which I have used. What would I need to put either side of the # to take a particular value

    IE if it reads "# CVR B" what do i need to put =MID(A1,SEARCH("#",A1,1)+1,99) is it =MID(A1,SEARCH("#",A1,1)+1,99) thats figure I mess with +6

  10. #10
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extraction of specific data after # Combining multiple worksheets to 1 master file

    Ok guys its all been sorted, can have a play around now with it, Thnaks

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: [SOLVED]Extraction of specific data after # Combining multiple worksheets to master fi

    Just fyi, in this part...
    SEARCH("#",A1,1)+1
    the search is for #, but you wanted the very next character, so what that does, is find the postion, starting from the 1st character (,1), and then adds 1 more to it.

    So if you want to pull more than just 1 character away from the #, then yes, you could increase the +1 by however many characters you need to "skip"

    best advise...if it's working and you want to modify it...try it and see where you get

+ 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. Using a macro to pull specific data from multiple files into a master file
    By bocaj315 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 09:31 AM
  2. Pull data from specific cells on multiple worksheets onto one master sheet
    By WorkforceMedia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 03:25 AM
  3. Replies: 3
    Last Post: 01-05-2013, 02:20 AM
  4. Combining Data From Multiple Worksheets into Master
    By excelnewb02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2011, 03:53 PM
  5. Combining multiple worksheets into master
    By valerina411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2008, 07:42 PM

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