+ Reply to Thread
Results 1 to 14 of 14

A word to = a number

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    10

    A word to = a number

    hello,

    I would like a formular for adding words together to make a total:

    eg. word: avaliable = +1
    words: broken, on site, being repared = -1 (each)

    so when i have a list of products that are on rent i no how many in total i have available.

    thanks

    Simon

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: A word to = a number

    Simon - is this what you had in mind?

    See attached spreadsheet.
    Attached Files Attached Files
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    11-16-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: A word to = a number

    Yes almost.. But i dont want to see the values..

    Thanks for your help!

    Simon

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: A word to = a number

    Simon, in order to get an accurate response I suggest uploading a sample workbook with data that matches your actual data in layout and format (does not need to be actual data if that is confidential).

    Show your "BEFORE", as well as how you would like to see the results AFTER any calculations or macros are used.

  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: A word to = a number

    Something like this, perhaps?
    Attached Files Attached Files
    _________________
    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!)

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: A word to = a number

    which values?

    I dont understand your requirement - pls give greater detail.

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: A word to = a number

    @Paul - thanks you are right. the more detail the better..........

    @ simon. i haven't seen JB's offering but you can bet your bottom doller that it knocks the socks off mine, so go with him!!


    All the best

  8. #8
    Registered User
    Join Date
    11-16-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: A word to = a number

    Thnakyou.. You should see from this form what i am trying to do.

    Thanks again

    Simon
    Attached Files Attached Files

  9. #9
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: A word to = a number

    I see, now... Try:

    =C4-(COUNTIF(B9:B14,"<>Available"))

  10. #10
    Registered User
    Join Date
    11-16-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: A word to = a number

    Quote Originally Posted by Paul View Post
    I see, now... Try:

    =C4-(COUNTIF(B9:B14,"<>Available"))


    Perfect!

    Thank you very much!

    Simon

  11. #11
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: A word to = a number

    Hi JB,

    I have had the chance to look at your solution. I think i'll save it to my "excel nougat" folder as may come in handy one day!

    If you don't mind, there is part of the formula which I dont understand, I can imagine, but would like confirmation, should you have the time to help. =COUNTIF(A:A, F3&"*"), I have highlighted the bit in Bold U'line.

    Could you also translate this one into English please, in particular the reason for the use of left and len. =SUMPRODUCT(--(LEFT($A$2:$A$20,LEN($F5))=$F5), --($B$2:$B$20=H$2))

    Thanks for your anticipated help and patience.

    Have a good day

    Cheers

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

    Re: A word to = a number

    My example has items called:

    VCR1
    VCR2
    VCR3
    ...etc,

    Then in F2 is just the basic listing "VCR" with no number. The F2&"*" adds a wildcard to the VCR string and basically means, "count every instance in column A of any string starting with VCR."

    ==========

    The SUMPRODUCT() basically needs to do the same thing. This function doesn't like whole column references, so I specified the range and this part of formula:

    (LEFT($A$2:$A$20,LEN($F5))=$F5)

    ...basically means look at F5 to see how many characters it is (VCR is 3) and then count how many cells in the range start with the same string that is in F5.

  13. #13
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: A word to = a number

    JB, Thanks v much indeed. Kind of you.

    All the best

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

    Re: A word to = a number

    Simon,

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    Last edited by JBeaucaire; 11-17-2010 at 11:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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