+ Reply to Thread
Results 1 to 19 of 19

Multiple IF Formulas???

  1. #1
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Multiple IF Formulas???

    Hopefully one of you guys can be a legend and help!!! Please find attached.

    I can get one part of formula working, but not sure how to add three different formulas together...?!?

    Thanks!Book1.xlsx

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

    Re: Multiple IF Formulas???

    Hi, welcome to the forum

    If F2 equals M2, then K4*50%, if not then " "
    If G2 equals M2, then K4*25%, if not then " "
    If H2 equals M2, then K4*25%, if not then " "
    Did you mean M1? Otherwise, M2 is a number, but G2 etc is text?

    And where exactly do you want this formula?

    I think the basis of what you want is something like...
    =K4*IF(F2=??,.5,IF(or(G2=??H2=??),.25,""))
    Last edited by FDibbins; 11-19-2015 at 12:40 PM.
    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
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    Hi! Sorry;

    If F2 equals M1, then K4*50%, if not then " "
    If G2 equals M1, then K4*25%, if not then " "
    If H2 equals M1, then K4*25%, if not then " "

    is it possible to add all of those into M2?

    this sheet relates to commission. An invoice is split into 3... (columns F,G,H)

    The problem is, is that some times there will be the same initial in columns FGH, but as you can see in row 3, there is a possibility of having three different inititals...

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

    Re: Multiple IF Formulas???

    Did you try my suggestion?

    =K4*IF(F2=M$1,0.5,IF(OR(G2=M$1,H2=M$1),0.25,""))

    This assumes that you want F2 to be the priority

    (K4 contains 0, so the answer is 0)

  5. #5
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    Quote Originally Posted by FDibbins View Post
    Did you try my suggestion?

    =K4*IF(F2=M$1,0.5,IF(OR(G2=M$1,H2=M$1),0.25,""))

    This assumes that you want F2 to be the priority

    (K4 contains 0, so the answer is 0)

    Hi. Yes I did and it comes up with £500 (K4 should be K2, my bad)... £500 is correct, however the total in CELL M2 should be £1000 because:

    Cell K2 is the total invoice amount
    Cells F2, G2, H2 is the invoice split (whoevers initial is in cell F2 gets 50% of the invoice value, initial in G2 gets 25% of invoice value, and initial in H2 gets 25%)

    Therefore, invoice value is £1000, as CF is stated in FGH2, CF gets £1000.

    I seem to get the £500 okay, but I need the above formula to add all three equations together in M2?

    Sorry if I have not explained myself properly!

  6. #6
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Hi Nathan,

    I am new to this forum too, only signed up yesterday.

    From what you are explaining, I would say the following formula (Nested IFs) will work.

    =IF(F2=M2,K2*50%,IF(G2=M2,K2*25%,IF(H2=M2,K2*25%,"")))

    When working with Nested IFs, if you have four true and false values(i.e. in your case 3 if true and 1 if false), you put in the three if true as IFs, the first 2 only have IF True, the the last IF Statement will have the IF false.

    Try it, hope it works, meaning that I have understood what you are trying to do.

    Regards,

    Sonia
    Last edited by Sonia67; 11-20-2015 at 06:12 AM.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Multiple IF Formulas???

    M2=SUMPRODUCT(($F2:$H2=M$1)*$K2*{0.5,0.25,0.25})
    Please Login or Register  to view this content.
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Hi Nathan,

    Please find attached updated spreadsheet that I had not opened earlier.

    I have used 3 IF statements and applied conditional formatting to the cells to hide the 0s. I removed the cell colour - if you want it, change the font colour I used for the conditional formatting to the same as the cell colour.

    Not sure if the file is attached, let me know if not.

    Hope this solves it for you.

    Regards,

    Sonia
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    thanks all!! brilliant stuff!!

  10. #10
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    431375d1448022638-multiple-if-formulas-nathans-spreadsheet.xlsx
    Quote Originally Posted by Sonia67 View Post
    Hi Nathan,

    Please find attached updated spreadsheet that I had not opened earlier.

    I have used 3 IF statements and applied conditional formatting to the cells to hide the 0s. I removed the cell colour - if you want it, change the font colour I used for the conditional formatting to the same as the cell colour.

    Not sure if the file is attached, let me know if not.

    Hope this solves it for you.

    Regards,

    Sonia
    Thanks Sonia! However, how do I change the cell referencing, so if I had a spread sheet with 100 or more rows? please find attached

  11. #11
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Smile Re: Multiple IF Formulas???

    Hi Nathan,

    I meant to ask you if you were going to be data filling it down. I have adjusted the formulas to allow for data filling, you can now data fill them down 1000 rows if you like.

    Regards,

    Sonia

  12. #12
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    Sonia, I think I love you Thanks!!!

    Now, I need to see if anyone can help me with a Pivot Table using that Spreadsheet!!!

  13. #13
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Hi Nathan,

    You're welcome.

    Out of practice a bit with Excel, haven't used it much for 11 years. Just said I'd give it a go, so it was good for me too.

    Will keep an eye out, if you put you're spreadsheet example up, I can take a look.

    Regards,

    Sonia

  14. #14
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    Book1.xlsx
    Hi Sonia

    Thanks! Please find attached.

  15. #15
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Hi Nathan,

    I have set up the first one as an example. Is it something like what you are looking for? I think you would need to do one for each employee, as they are in separate columns.

    Regards,

    Sonia
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    Hi Sonia

    I have added different variables in the clients and candidates...would it be possible to have the candidate and clients listed, like the dates are also?

    I should be able to create one for each consultant after that?! Thanks so much

  17. #17
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Hi Nathan,

    Going by what you are saying, if it was me, I would copy the worksheet, a copy for each employee, and hide the columns I don't want. It would take the same length of time, but you will have more control, it would look like the main sheet and you can easily filter it.

    Have a look at the attached, CF Table sheet and see what you think.

    Regards,

    Sonia
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    11-19-2015
    Location
    london
    MS-Off Ver
    2013
    Posts
    9

    Re: Multiple IF Formulas???

    perfect! thanks so much Sonia!!

  19. #19
    Registered User
    Join Date
    11-19-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    22

    Re: Multiple IF Formulas???

    Just thought about what I sent you, if your figures change on the main sheet, they will not change on the other sheets, therefore, I have done the first two sheets - CF and SK. When you copy the sheet for each employee, click on the first figure for that emp., and press =, main sheet,same cell, then data fill down. To make sure the figures will update automatically. That is if your figures might change. When you filter CF's figures just select Not Equals To 0.

    Good luck with it.

    Regards,

    Sonia
    Attached Files Attached Files

+ 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: 1
    Last Post: 06-03-2015, 06:27 PM
  2. formulas for search based on multiple criteria in multiple columns
    By oneworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 06:57 AM
  3. Replies: 0
    Last Post: 04-14-2013, 08:39 PM
  4. Multiple formulas in selected cell without damaging previous formulas.
    By excel5111987 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2011, 06:15 AM
  5. Copy formulas to adjacent columns - multiple cells and multiple sheets
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2011, 06:21 AM
  6. Sort multiple columns with multiple formulas without returning #R
    By bellsjrb in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-14-2006, 05:05 AM
  7. Sort multiple columns with multiple formulas without returning #R
    By bellsjrb in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-14-2006, 05:00 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