+ Reply to Thread
Results 1 to 4 of 4

Combining IF statements

  1. #1
    Registered User
    Join Date
    09-02-2020
    Location
    London, England
    MS-Off Ver
    10
    Posts
    2

    Combining IF statements

    Hello,

    I have two IF formulas that I would like to combine - please see attached excel doc.

    If C2 = "Blue" =IF(E2="","",IF(((((((B2*(C2-2))*1.02)/(E2-1))/1.02)+(-B2))+(B2))/(B2)<0.65,"NO BET",((C2-1)/(E2-F2)*B2)))
    If C2 = "Green" =IF(E3="","",IF(((((((B3*(C3-2))*1.02)/(E3-1))/1.02)+(-B3))+(B3))/(B3)<0.65,"NO BET",(C3/(E3-F3)*B3)))


    The formulas are the same up until after "NO BET". I would like this to be one formula only so that I can change value C2 and it calculates correctly.

    Many thanks, Alexya

    Cross-posted https://www.mrexcel.com/board/thread...mulas.1144659/
    Attached Files Attached Files
    Last edited by 6StringJazzer; 09-02-2020 at 11:59 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Combining IF statements

    Your formulas do not work in the current form, you even have them as text in the example. Why not say in English what you want

    it will also give an idea of presedence

  3. #3
    Registered User
    Join Date
    09-02-2020
    Location
    London, England
    MS-Off Ver
    10
    Posts
    2

    Re: Combining IF statements

    The formulas do work, they are in cells F2 & F3 in the attachment.
    I would like to combine both formulas so that when I change the text in C2 to "Blue" or "Green", it drives out the correct result.
    Thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,755

    Re: Combining IF statements

    Welcome to the Forum dempsey29!

    Please note that if you post the same question elsewhere we require a link. I have provided it for you since it's your first post.

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

+ 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. Combining Two Different IF AND statements with an ELSE
    By Hoth2001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2017, 07:39 PM
  2. [SOLVED] Combining IF Statements
    By Bob Lankin in forum Excel General
    Replies: 5
    Last Post: 10-05-2013, 04:50 PM
  3. [SOLVED] Combining 3 IF/AND statements with OR
    By lsargent in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2012, 01:07 AM
  4. Combining IF Statements with AND OR
    By MKuehner in forum Excel General
    Replies: 1
    Last Post: 05-03-2012, 02:36 PM
  5. combining various IF statements
    By Lorna B in forum Excel General
    Replies: 11
    Last Post: 09-10-2009, 10:48 AM
  6. combining two if then statements
    By wynsum in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-16-2009, 10:52 PM

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