+ Reply to Thread
Results 1 to 5 of 5

Can Excel return only part of the text in a cell?

  1. #1
    Forum Contributor
    Join Date
    09-19-2016
    Location
    Alaska
    MS-Off Ver
    MS 2010, 2013, 2016
    Posts
    272

    Can Excel return only part of the text in a cell?

    Hi guys

    I have a worksheet with hundreds of rows as you see in the example attached - I am only interested in the dollar amounts so I can then sum them. Is there a function that would allow me to only return the dollar amount? I can't use the RIGHT function since the text changes per line
    Attached Files Attached Files
    Last edited by AccountingJ; 10-30-2018 at 02:20 PM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Can Excel return only part of the text in a cell?

    This works on the sample given:

    B2 =MID(A2,FIND("$",A2)+1,5)+0

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Can Excel return only part of the text in a cell?

    Please try at B2

    =--MID(A2,FIND("$",A2)+1,6)

    or

    =-LOOKUP(1,-MID(A2,FIND("$",A2)+1,{4,5,6,7,8}))

  4. #4
    Forum Contributor
    Join Date
    09-19-2016
    Location
    Alaska
    MS-Off Ver
    MS 2010, 2013, 2016
    Posts
    272

    Re: Can Excel return only part of the text in a cell?

    both work well, thank you guys for your response.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Can Excel return only part of the text in a cell?

    Glad we could help. Thanks for the rep!

+ 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] Code to search Excel and return results even if part of search text is present
    By Taoyuan00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2016, 09:20 AM
  2. Return TRUE if 'part text' found in cell range
    By AnnieM in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-23-2014, 05:10 AM
  3. [SOLVED] Find Text In Range With Part Of Text & Return True or False
    By tis28 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2013, 09:35 PM
  4. Moving part of text in cell to another cell Excel 2007
    By Deepesh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2013, 06:25 AM
  5. [SOLVED] Lookup function to return only part of the text of a cell
    By cpalmer72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 04:14 PM
  6. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  7. Replies: 5
    Last Post: 04-08-2012, 01:06 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