+ Reply to Thread
Results 1 to 5 of 5

getting the total from the result of the formula

  1. #1
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    getting the total from the result of the formula

    sorry for the title, but i cant think of better title, so here we go. I have already an existing formula to get only the amount from the previous cell. From a6 to a30 it contains the word "11/05/09 press release $100", so in b6-b30 this is the formula.

    =IF(ISNUMBER(SEARCH("press",A6)),RIGHT(A6,LEN(A6)-FIND("$",A6)),"") until b30


    the problem is in b6:b30 the 100's were not a number you have to copy and paste to other cells using paste special then values then click the smart tag and convert as a number to get all the total from b6 until b30.


    is there a better way to get the total of those amount without doing those steps?


    Thanks!
    Last edited by darkhangelsk; 08-01-2009 at 12:08 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: getting the total from the result of the formula

    Just add +0 to the end of the formula to convert the result into a real number.

    =IF(ISNUMBER(SEARCH("press", A6)),RIGHT(A6, LEN(A6) - FIND("$", A6)), "") + 0
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: getting the total from the result of the formula

    This change will return numeric results.. Is this what you mean?

    =IF(ISNUMBER(SEARCH("press",A6)),RIGHT(A6,LEN(A6)-FIND("$",A6))+0,"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Re: getting the total from the result of the formula

    lolz! i kinda laugh at myself i've been doing some tweak and all tweak all day, and you give me the answer in just 5mins?. Gosh...


    Thanks! Problem Solved!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: getting the total from the result of the formula

    Aww... don't laugh. It is always easy when you already know how. This is the first time you've faced this issue so it comes as a bit of an enigma, as it does for many (it did for me).

    Now that I've been through it, I instinctively know to do this, and now you will, too!

    Go team!

    Moral of the Story: "Ask the forum sooner."



    EDIT:

    Remember the Left/Right alignment of values in cells is meant to remind you what kind of data it is. If you see 1234 but it is aligned LEFT, it is text (barring any fancy formatting, that is).
    Last edited by JBeaucaire; 08-01-2009 at 11:28 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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