+ Reply to Thread
Results 1 to 4 of 4

IF-THEN function for many conditions

  1. #1
    Forum Contributor
    Join Date
    09-04-2007
    Posts
    127

    Unhappy IF-THEN function for many conditions

    Dear all,

    I have attached my sheet. I want to apply IF-THEN formula in P1 cell in this condition:-

    IF C1=Y then =IF(OR($D$4="",M8=""),0,IF($D$3="USD",J8,IF(J8="na","na",J8/$D$4)))

    OR (IF NOT)

    C1=N then=IF(OR($D$4="",M8=""),0,IF($D$3="USD",M8,IF(M8="na","na",M8/$D$4)))

    Can anyone help me.
    Attached Files Attached Files
    Last edited by ss_bb_24; 11-24-2008 at 03:12 AM.

  2. #2
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    try =IF(C1="Y",IF(OR($D$4="",M8=""),0,IF($D$3="USD",J8,IF(J8="na","na",J8/$D$4))), IF(C1="N", IF(OR($D$4="",M8=""),0,IF($D$3="USD",M8,IF(M8="na","na",M8/$D$4))),"Dont know what to do"))
    Kieran

  3. #3
    Forum Contributor
    Join Date
    09-04-2007
    Posts
    127

    Thanks Kieran!!

    Thanks a lot. Its working. But if I want to add one more condition alongwith this. The condition is below:-

    If D1="x"
    then P1= IF(C1="Y",IF(OR($D$4="",M8=""),0,IF($D$3="USD",J8,IF(J8="na","na",J8/$D$4))), IF(C1="N", IF(OR($D$4="",M8=""),0,IF($D$3="USD",M8,IF(M8="na","na",M8/$D$4))),"Dont know what to do"))

    Else P1=0

    could you please guide me how can I add one more if-then function with this.

    Thanks in advance!!!

  4. #4
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    Use

    = IF(D1="x", IF(C1="Y",IF(OR($D$4="",M8=""),0,IF($D$3="USD",J8,IF(J8="na","na",J8/$D$4))), IF(C1="N", IF(OR($D$4="",M8=""),0,IF($D$3="USD",M8,IF(M8="na","na",M8/$D$4))),"Dont know what to do")),0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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