+ Reply to Thread
Results 1 to 4 of 4

Cant get the formula right

  1. #1
    Registered User
    Join Date
    09-29-2015
    Location
    Missouri
    MS-Off Ver
    2010
    Posts
    2

    Cant get the formula right

    I am trying to create a formula that is conditional on the text in another cell and completes a simple calculation using a value from yet another cell. For example I have a dropdown for cell a2 that has options of A,B,C. If A2 ="A" then I want it to use the value entered in C2, If A2= "B" I want it to divide the value in C2 by 2, If A2 = "C" then I want the value to be 0. I have tried and tried and know I am close but can't get it to work. Please help

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Cant get the formula right

    try

    =IF( A2="A", C2, IF(A2="B", C2/2, IF(A2="C", 0, "" )))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-29-2015
    Location
    Missouri
    MS-Off Ver
    2010
    Posts
    2

    Re: Cant get the formula right

    Worked perfectly! Thanks. I see now where I was messing up.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Cant get the formula right

    your welcome

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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