+ Reply to Thread
Results 1 to 3 of 3

Multiple IF Conditions based on Text in a cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Multiple IF Conditions based on Text in a cell

    Hi,

    I have a file in which F9 has the value subtracted from E9 - D9.
    C9 has a value either "M" or "SF"
    Cell H9 has the following formula
    H9=IF((F9>G9),(F9-G9)*1,IF((F9<G9),(G9-F9)*2,0))
    I need the formula if C9 = "M" then the above formula should be applied.
    If C9 = "SF" then the following formula should be implemented.
    H9=IF((F9>G9),(F9-G9)*1,IF((F9<G9),(G9-F9)*5,0))
    I tried AND and OR logics but couldn't sort it out.
    Somebody please guide me.
    Thanks in advance.

    I have attached my file.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Multiple IF Conditions based on Text in a cell

    Maybe..
    =IF(F9>G9,(F9-G9)*1,IF(F9<G9,(G9-F9)*IF(C9="M",2,IF(C9="SF",5,0)),0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Multiple IF Conditions based on Text in a cell

    Hi,

    Ace thanks for your reply and help.
    This is what I was looking for exactly.

    Thanks a lot Sir.

+ 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. Combine text from multiple cells, Based on conditions
    By dark_horizon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 11:07 AM
  2. Replies: 3
    Last Post: 07-25-2012, 07:54 AM
  3. Replies: 1
    Last Post: 12-05-2010, 04:39 AM
  4. Cell value based on multiple conditions
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-23-2010, 12:57 PM
  5. Count Unique text based on multiple conditions
    By MAX258 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2005, 01:44 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