+ Reply to Thread
Results 1 to 10 of 10

Pulling Info from Column

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Miami, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Pulling Info from Column

    Hi all,

    I'm copying and pasting data from a PDF and need to eliminate some unnecessary data. The original .pdf has 4 columns: Account, Dollar Amount, Name, Notes

    When I copy this to an excel document, it copies the row from all 4 columns into column A. The two columns I need are Account and Dollar Amount. All account numbers are 8 digits so I was able to create a formula to weed that out with this:
    =left(A1,8)

    The problem I'm running into is obtaining the dollar amount within the cell.
    For example:

    A1 contains: 11112222 $1234.56 Sample, Name Sample Note

    I pull the 11112222 with =left(A1,8) in column B but not sure how to pull dollar amount to column C.

    Further, the dollar amount varies from $1.01 to $10,000+

    Let me know if you need any further clarification. I appreciate the help!

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Pulling Info from Column

    Where A1 has the data:

    Please Login or Register  to view this content.
    Last edited by Speshul; 07-08-2014 at 11:15 AM.

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

    Re: Pulling Info from Column

    May be this.....

    Please Login or Register  to view this content.
    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.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pulling Info from Column

    to get dollar amount try this one

    =TRIM(MID(SUBSTITUTE(MID(A1,FIND("$",A1),255)," ",REPT(" ",255)),1,255))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    09-04-2013
    Location
    Miami, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Pulling Info from Column

    Sure, here is a sample with varying dollar amounts

    samplebook.xlsx

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Pulling Info from Column

    =MID(A1,FIND("$",A1),FIND(" ",A1,10)-FIND("$",A1))

    should work fine

    or any of the above suggestions!

  7. #7
    Registered User
    Join Date
    09-04-2013
    Location
    Miami, FL
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Pulling Info from Column

    All of the above suggestions worked, thank you for speedy reply!!

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pulling Info from Column

    Actually you can use just one formula to get the account and dollar amount

    Copy and paste formula in B1 and pull it to C1

    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",255)),(COLUMNS($A1:A1)-1)*255+1,255))

    A
    B
    C
    1
    11112222 $1234.56 Sample, Name Sample Note 11112222 $1234.56

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pulling Info from Column

    You're welcome and thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  10. #10
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Pulling Info from Column

    Quote Originally Posted by AlKey View Post
    Actually you can use just one formula to get the account and dollar amount

    Copy and paste formula in B1 and pull it to C1

    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",255)),(COLUMNS($A1:A1)-1)*255+1,255))

    A
    B
    C
    1
    11112222 $1234.56 Sample, Name Sample Note 11112222 $1234.56
    oh that's pretty cool, didn't know about that combination

    I'd use that one if you need to split everything off, it works every time it finds a space too so it'll separate everything if you copy to F. If there is always a comma after the third criteria....you could triple the formula length to get rid of it!

    Please Login or Register  to view this content.
    lol

+ 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. Need help pulling info from a list
    By andyaf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2013, 05:05 PM
  2. Excel 2007 : Pulling info off 1 sheet from another
    By kwrcst in forum Excel General
    Replies: 2
    Last Post: 05-11-2012, 10:17 AM
  3. Pulling info from one sheet to another
    By floridavera in forum Excel General
    Replies: 6
    Last Post: 05-20-2011, 08:46 AM
  4. Pulling info out of an old layout
    By Befuddled in forum Excel General
    Replies: 8
    Last Post: 04-10-2010, 12:06 AM
  5. [SOLVED] Pulling info into another sheet
    By Teric506 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-26-2005, 01:05 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