+ Reply to Thread
Results 1 to 4 of 4

Getting a false answer

  1. #1
    Registered User
    Join Date
    03-24-2015
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2007
    Posts
    3

    Getting a false answer

    Hi, I’m trying to write a formula but am struggling with it. I would like the following to happen.
    B x C = E, but if A has ‘yes’ in the cell then I want the formula to go B x C x D = E
    Can anybody please help. The formula I'm using is =IF(H22="yes",SUM(I22*J22)*K22)

    A B($) C(qty) D(margin) E(total)
    yes 100 2 1.5 230 If A didn't have 'yes' typed in then the total will be 200


    Thanks for your help in advance.
    Darren

  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,933

    Re: Getting a false answer

    Hi, welcome to the forum

    maybe this?

    =B*c*if(A="yes",d,1)

    (you dont need to use SUM when multiplying cells/numbers together)
    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
    03-24-2015
    Location
    Hamilton, New Zealand
    MS-Off Ver
    2007
    Posts
    3

    Re: Getting a false answer

    Thanks Ford, really appreciate it. Works great!

  4. #4
    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,933

    Re: Getting a false answer

    Happy to help

+ 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. [SOLVED] All in one line of code: ScreenUpdating=False, Calculation=Manua, DisplayAlerts=False
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2016, 03:10 PM
  2. [SOLVED] Multiple fields and want only 1 answer = TRUE or = FALSE
    By edanielqsf in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-23-2014, 08:10 PM
  3. Replies: 1
    Last Post: 09-30-2013, 10:56 PM
  4. If statement, answer is false, hide false.
    By Mel B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2013, 06:36 PM
  5. [SOLVED] FALSE answer displayed on formula - should work!
    By sna400 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2013, 09:31 AM
  6. Replies: 1
    Last Post: 08-20-2011, 06:51 AM
  7. Replies: 6
    Last Post: 06-06-2006, 01:25 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