+ Reply to Thread
Results 1 to 2 of 2

stuck on pulling numbers from a cell that has text in it as well

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    19

    stuck on pulling numbers from a cell that has text in it as well

    I'm trying to multiply the first number by the second number in a cell that has a "d" between them. Sometimes the number has more than a single number.
    for instance
    2d6 would = 12
    12d8 would =96
    dealing with a concatenate function to add text before the formula
    (e.g.) CONCATENATE("final damage ",SUM(Cell 1, Cell 2, and whatever function to figure out what is needed for the math))
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: stuck on pulling numbers from a cell that has text in it as well

    hi there. not sure which cell are you looking at. single or multiple? single:
    =LEFT(B1,FIND("d",B1)-1)*MID(B1,FIND("d",B1)+1,5)

    multiple:
    =SUMPRODUCT(LEFT(B1:B22,FIND("d",B1:B22)-1)*MID(B1:B22,FIND("d",B1:B22)+1,5))

    you can then combine with your concatenate. if this doesn't help, let us know what results you wish to see for an eg & how you got that

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Pulling row data by cell text
    By tanelli80 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-17-2013, 03:32 PM
  2. [SOLVED] numbers stuck as text not able to convert to numbers anybody have a solution?
    By georgeparker88 in forum Excel General
    Replies: 10
    Last Post: 08-07-2012, 08:43 AM
  3. Macro for returning cell info after pulling numbers from web
    By DrSues02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2009, 02:56 PM
  4. Pulling Partial Text from a cell
    By U6C84 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2007, 01:54 PM
  5. [SOLVED] function for pulling certain numbers from a cell?
    By datasorter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2006, 07:35 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