+ Reply to Thread
Results 1 to 3 of 3

using a word to determine a numeric value in a formula

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    Pullman, WA
    MS-Off Ver
    Excel 2016
    Posts
    1

    using a word to determine a numeric value in a formula

    I want to utilize a drop down menu to populate a cell. In another cell I need to create a formula that changes certain criteria based upon the word choosen in a drop down list.

    For example cell c2 is an application rate of 32, c3 contains a drop down list of Fl. ounces, gallons, ounces, cell c4 acounts for acres. In cell c6 I want to calculate the amount of product needed by formulating my rate (c2) x acres (c4) / "x" amount determined by whatever is chosen in cell c3, i.e. fl ounces =128.

    So 32 (c2) x 1000 (c4) = 32000 oz / 128 (c4 based on choosing fl. ounces) = 250 gallons

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: using a word to determine a numeric value in a formula

    In a generic sense, I would generally use a lookup table with a lookup function to look up "word -> number" relationship.

    However, in the specific case of unit conversions, I like to use the CONVERT() function -- as long as all the units I want to be able to use are built into the CONVERT() function. If C2 is 32, C3 is "oz" (the abbreviation used by the CONVERT() function for fluid oz which you can control in your drop down list), C4 is 1000, then the formula in C6 can be =CONVERT(C2,C3,"gal")*C4 to give you gallons/acre. The key is to make sure your abbreviations in C3 are all valid unit abbreviations used by the CONVERT() function. CONVERT() function help file which includes the allowed abbreviations: https://support.office.com/en-us/art...d-666c810f9af2
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: using a word to determine a numeric value in a formula

    make a reference table and do a vlookup for the value based on the words.


    FL ounces | 128
    Gallons | 1
    ounces | ?

    Please Login or Register  to view this content.
    that should solve your problem..

+ 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. Determine if Cell Format is M/D/YYYY and Change to Numeric Value in YYYYMMDD Format
    By bryanmarks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2017, 06:16 PM
  2. [SOLVED] Create a formula that ignores when non-numeric value is entered in numeric field
    By lukela85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 07:22 AM
  3. [SOLVED] Determine if a Word doc is open
    By natefarm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2013, 09:46 AM
  4. How can I let the macro determine if the contents of a cell is numeric or text
    By NALDO in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-18-2012, 03:15 AM
  5. [SOLVED] convert numeric to word
    By MRIDUL in forum Excel General
    Replies: 1
    Last Post: 07-17-2006, 12:05 PM
  6. [SOLVED] Determine if a character is numeric or non-numeric
    By AP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2005, 05:06 AM
  7. Determine if character is text or numeric?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2005, 08:06 PM

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