+ Reply to Thread
Results 1 to 10 of 10

Need help writing / combining formulas

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    8

    Need help writing / combining formulas

    Hi!

    So I have to combine the below formulas / logic and I am not managing it.... I keep getting value errors or name errors... I would really appreciate your help!

    I have attached my data set.

    I need to combine:

    =IF(A1="New Color",C1) (logic: if A has the value "New Color", populate column G with the value in column C)
    =IF(A1="New Product",D1) (logic: if A has the value "New Product", populate column G with the value in column D)
    =IF(B1="",IF(D1="",C1,D1),"Exception") (this formula is the formula that was in the file and that someone else input and frankly, I don't understand it... can someone explain? basically the part I know about it is that if there a value in column B it needs to say: "Exception" in column G... but I don't understand what the formula is doing if there is no value in column B. Either way, I need part of my combined formula to include a bit of it that will incorporate this logic)

    Basically to sum it up, the combined formula just needs to have the part in red but it also needs to consider column A values for New Color and New Product. If New Color it needs to look at values in column C and if New Product it needs to look at values in column D.

    Hope it makes sense!

    Thank you..
    Attached Files Attached Files
    Last edited by AhMelody; 06-21-2017 at 12:45 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help writing / combining formulas

    If I understood well
    G3: =IF(A3="New Color",C3,IF(A3="New Product",D3,"Exception")) and drag down

  3. #3
    Registered User
    Join Date
    04-05-2016
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    8

    Re: Need help writing / combining formulas

    Thank you!!!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help writing / combining formulas

    You are welcome

    If that takes care of your original question, please click Add Reputation then select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    04-05-2016
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    8

    Re: Need help writing / combining formulas

    I actually have one more thing!

    The formula works great but I need to add a condition to it and I can't manage to make it work...

    IF B column has a value, G needs to have the label "Exception" in it. If B doesn't have a value, then apply this entire formula: =IF(A3="New Color",C3,IF(A3="New Product",D3,"Exception"))

    Is that possible??
    Last edited by AhMelody; 06-21-2017 at 12:07 PM.

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Need help writing / combining formulas

    =IF(B3<>"",IF(G3="Exception",IF(A3="New Color",C3,IF(A3="New Product",D3,"Exception"))))

    I think that's what you want?

  7. #7
    Registered User
    Join Date
    04-05-2016
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    8

    Re: Need help writing / combining formulas

    Thank you, I think we're almost there but I got a "circular reference" error :/

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help writing / combining formulas

    G3: =IF(B3<>"","Exception",IF(A3="New Color",C3,IF(A3="New Product",D3,"Exception")))

    If that takes care of your post #5 question, please click Add Reputation then select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    and read Forum Rules point 4
    Last edited by sandy666; 06-21-2017 at 02:55 PM.

  9. #9
    Registered User
    Join Date
    04-05-2016
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    8

    Re: Need help writing / combining formulas

    Thank you!! You're a genius!

    And sorry about break the rule :/ So new! Should have read.

    I really appreciate the help!

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help writing / combining formulas

    You are welcome
    and Yes, You should

    Did you check file from post#4 of Need help understanding complicated IF formula in order to update thread?
    Last edited by sandy666; 06-21-2017 at 04:08 PM.

+ 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] Writing 2 formulas within one cell
    By yelmoujahid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2014, 05:30 PM
  2. Writing Table Formulas Using VBA
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2013, 06:08 PM
  3. [SOLVED] Writing a Macro for combining individual workbooks into one.
    By DotWFM in forum Excel Programming / VBA / Macros
    Replies: 36
    Last Post: 12-17-2012, 02:53 PM
  4. [SOLVED] writing in formulas - getting errors
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2012, 11:42 AM
  5. writing SUMIF formulas
    By jimmybrine in forum Excel General
    Replies: 4
    Last Post: 10-27-2009, 01:31 AM
  6. Need help writing formulas in excel using ratios
    By Excel Hack in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 07:45 PM
  7. Writing formulas ...
    By Sige in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2005, 10:05 AM

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