+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Cant use a descriptive word in my formula =(1.4 * 4 yards)

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Norfolk va
    MS-Off Ver
    Excel 2007,excel 2010
    Posts
    5

    Cant use a descriptive word in my formula =(1.4 * 4 yards)

    I am making a formula to include a description.

    IE...

    product price amount Cost
    red fabric $1.50 4 yards =(price*amount)


    thats the basics of what i am trying to do. I have made a drop down list for the amount as well if that matters. I understand the problem to be that my formula performs math on those cells by using the standard arithmetic operators (+, -, *, and /). How can i make the formula ignore the text in that field and still do the math.

    Thanks in advance for any help.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,678

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    What data is in each of the cells? Ideally, post a sample workbook with several examples.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    Norfolk va
    MS-Off Ver
    Excel 2007,excel 2010
    Posts
    5

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    I have attached a work book. In it I have used 2 dif. very simple formulas. Problem is that the system doesnt like the word yard or yards after the number. The goal is to get the formula to ignore the text but still multiply the numbers in the cell.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,678

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    Untested, but try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    And copy down.


    Regards, TMS

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    Simpler to change the header to quantity /yards, then use proper numbers in the cells. You could use a custom numberformat - 0 "yards".
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    07-05-2012
    Location
    Norfolk va
    MS-Off Ver
    Excel 2007,excel 2010
    Posts
    5

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    @tmshucks thanks man that worked perfectly.

    @royUK it would be simpler accept that the data in that column wont all be something measurable in yards. It will be many dif. items. But thank you for your response.

    I am glad I found this place!

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    Norfolk va
    MS-Off Ver
    Excel 2007,excel 2010
    Posts
    5

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    @ tmshucks Where is a good place to learn the more complex side of these formulas. I appreciate the fact that the formula works but would love to understand why.

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Cant use a descriptive word in my formula =(1.4 * 4 yards)

    Another way ...
    Please Login or Register  to view this content.
    Or just
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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