+ Reply to Thread
Results 1 to 3 of 3

(QUESTION) Molar Mass Calculator with drop-down list

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    England
    MS-Off Ver
    Excel 2011 Mac
    Posts
    2

    Question (QUESTION) Molar Mass Calculator with drop-down list

    Dear All,

    Instead of using the mass molarity calculator from available companies such as: http://www.sigmaaldrich.com/chemistr...alculator.htmlI would like to create an excel sheet my self for offline uses.

    Like the format in the link provided, I would like that a cell could swap between formula/calculation depending on the two drop-down list.
    Something like this: Mass= formula A if drop-down 1 is liter & drop-down 2 is molar, or formula B if drop-down 1 is liter & drop-down 2 is molar.

    I know I can do this if I create multiple cells with specific formula, but then the sheet wouldn't look so nice If this is too difficult to create then please let me know so i'll give up


    Thank.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: (QUESTION) Molar Mass Calculator with drop-down list

    Hi and welcome to the forum

    Something like this: Mass= formula A if drop-down 1 is liter & drop-down 2 is molar, or formula B if drop-down 1 is liter & drop-down 2 is molar.
    I presume you meant liter/molar or molar/liter?

    To create a formula based on whichever of those combinations are selected, you could use an IF() statement. Something like....
    =if(A1=B1,"",if(and(A1="Liter",B1="Molar"),formula1,formula2))

    the if(A1=B1,"", part is to take care of only 1 of the 2 D/D's being selected by mistake
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    England
    MS-Off Ver
    Excel 2011 Mac
    Posts
    2

    Re: (QUESTION) Molar Mass Calculator with drop-down list

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum



    I presume you meant liter/molar or molar/liter?

    To create a formula based on whichever of those combinations are selected, you could use an IF() statement. Something like....
    =if(A1=B1,"",if(and(A1="Liter",B1="Molar"),formula1,formula2))

    the if(A1=B1,"", part is to take care of only 1 of the 2 D/D's being selected by mistake

    Thanks FDibbins, I will certainly give this a try.


    23/8/13

    got it working. Thank you FDibbins.

    My formula for now is =IF(AND(C6=G12,C7=H12),B7*B6*B5,IF(AND(C6=G13,C7=H12),B7*(B6/1000)*B5,0))
    I will have to create 7 more scenarios, but which is easy now that I know how to use the IF function.
    Last edited by excel-tester; 08-23-2013 at 04:50 AM.

+ 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. Drop Down list question
    By madhatr in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-28-2013, 10:36 AM
  2. Drop Down List Question?
    By DJ-Cavity in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2011, 04:48 PM
  3. Drop-down list question
    By darrellb in forum Excel General
    Replies: 4
    Last Post: 11-20-2010, 05:00 AM
  4. [SOLVED] Drop Down List Question
    By EyeNoNothing in forum Excel General
    Replies: 3
    Last Post: 02-07-2006, 06:25 AM
  5. [SOLVED] drop down list question
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 01-20-2005, 03:06 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