+ Reply to Thread
Results 1 to 4 of 4

if condition excel formula from 4 cells values result as of conditions of two cells

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    if condition excel formula from 4 cells values result as of conditions of two cells

    dear experts

    I need your help on if conditions works depends upon two column values!! Like

    I have ZONE LIST in A:A column , and SLD IN B:B column,,,,


    A:A column contains of -,A,B,C,D
    SLD Column constians of ND,2BD,3BD,4BD,5BD

    condition is if A Meets - and if B Meets ND I want calculate INT(D2)-INT(C2)
    condition is if A Meets A and if B Meets ND I want calculate INT(D2)-INT(C2)
    condition is if A Meets B and if B Meets 2BD OR 3,OR 4,OR 5 I want calculate INT(D2)-INT(C2)-1
    condition is if A Meets C and if B Meets 2BD OR 3,OR 4,OR 5 I want calculate INT(D2)-INT(C2)-1
    condition is if A Meets D and if B Meets 2BD OR 3,OR 4,OR 5 I want calculate INT(D2)-INT(C2)-1

    One more thing if INT(D2)-INT(C2) result is like 41589,-41589, or D2 and C2 Is blank i want result blank.

    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if condition excel formula from 4 cells values result as of conditions of two cells

    Why not like this?

    In E2 Cell

    =IF(COUNT(C2:D2)=2,IF(A2<>"A",(D2-C2)-1,(D2-C2)),"")

    Drag it down…


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: if condition excel formula from 4 cells values result as of conditions of two cells

    Thanks Dude Ever for you help Sixsense....Solved

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if condition excel formula from 4 cells values result as of conditions of two cells

    Glad it helps you and thanks for the feedback

+ 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. Formula for multiple conditions only returns values for first condition
    By Kazzza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2013, 07:36 AM
  2. condition formula result from depends upon 3 cell values with conditions
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2013, 07:15 AM
  3. Replies: 5
    Last Post: 10-15-2012, 06:33 PM
  4. Replies: 8
    Last Post: 07-13-2012, 09:02 AM
  5. Replies: 2
    Last Post: 06-21-2012, 04:51 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