+ Reply to Thread
Results 1 to 10 of 10

Trouble combining PRODUCT and IF function in same column

  1. #1
    Registered User
    Join Date
    12-18-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Trouble combining PRODUCT and IF function in same column

    Is it possible to combine an IF function with a cell that uses a PRODUCT function as well? I need the output numbers in column K to default to zero if the answer is above 165. The PRODUCT function is dependent on the A and B cell within the same row. Once that answer is determined, if it is below 165 the answer will remain, but if it is above 165 I need it to default to zero. You can see in the attachment that the L column has an IF function that calculates based on the output of K. If K is above 165, column L is activated and gives an output number. Is there someway to include the IF function within the same cell as the answer the IF function depends on? I have not been able to effectively insert a function combining the 2 functions. Instead I have to go down the K column and wherever the L column creates an output, I have to mark out the output number in the K column. Here is the formula for column L : =IF(K5>165,(A5*2+B5*2)*0.78,IF(K5<=165,0)) Essentially the formula for K would be the same thing, but reversed.
    Attached Images Attached Images
    Last edited by heatblocker10; 12-22-2014 at 11:25 AM.

  2. #2
    Registered User
    Join Date
    12-18-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Trouble combining PRODUCT and IF function in same column

    Doesn't look like my attachment went through the first time. I'll try again. Excel Worksheet Screenshot.png

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Trouble combining PRODUCT and IF function in same column

    is this what you meant?

    =IF((A5*2+B5*2)*0.78>=165,0,(A5*2+B5*2)*0.78)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Trouble combining PRODUCT and IF function in same column

    There's a discrepancy between your Post 1 and Post 2. Is it meant to be 0.75 or 0.78?

  5. #5
    Registered User
    Join Date
    12-18-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Trouble combining PRODUCT and IF function in same column

    Am I missing something about posting attachments? Neither one of the screenshots I posted are showing up. I just see a black "X" where the image should be.

    Glenn, I'm looking to combine a product and if function together in the same cell.

  6. #6
    Registered User
    Join Date
    12-18-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Trouble combining PRODUCT and IF function in same column

    Am I missing something about posting attachments? Neither one of the screenshots I posted are showing up. I just see a black "X" where the image should be.

    Glenn, I'm looking to combine a product and if function together in the same cell.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Trouble combining PRODUCT and IF function in same column

    Let me guess. You're using Internet Explorer... I had this problem until I switched to Firefox. i can see them fine (even thought htey're a bit slow to load). BtW, it's much easier if you post an Excel sheet...

    I think the formula above (Post 3) does what you want. Can you check it?

  8. #8
    Registered User
    Join Date
    12-18-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Trouble combining PRODUCT and IF function in same column

    Looks like that solved it! Thank you for the prompt response! I transferred the same equation to the L column and adjusted the variables I needed to and everything is correct now. Thanks again And yes I'm using IE (1990's nostalgia?)

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Trouble combining PRODUCT and IF function in same column

    Great. Can you please now mark the thread as solved and (preferably) click the add Reputation button at the foot of this post?

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Trouble combining PRODUCT and IF function in same column

    factor that down a bit
    =IF(2*(A5+B5)*0.78>=165,0,2*(A5+B5))*0.78)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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] Combining One Product with Many Variations then going to next product
    By kikboxr777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2014, 08:53 AM
  2. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  3. Replies: 6
    Last Post: 05-17-2012, 12:07 PM
  4. Having trouble combining AND and IF
    By hammerb in forum Excel General
    Replies: 2
    Last Post: 10-05-2011, 10:24 AM
  5. Combining a VLOOKUP and PRODUCT function
    By andrewc in forum Excel General
    Replies: 4
    Last Post: 09-11-2009, 08:03 AM

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