+ Reply to Thread
Results 1 to 8 of 8

Two Individual formulas

  1. #1
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190

    Two Individual formulas

    Hi,

    =IF(Evaluation!$C$27=1,SUMPRODUCT(--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y")))

    =IF(Evaluation!C27=3,SUMPRODUCT(--($E$6:$E$2000-DAY($E$6:$E$2000)+1=EOMONTH(Evaluation!$C$29,-1)+1),--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y")))


    First formula is reading the values without checking the month(C27=1 entire range), and second the formula C27 cell is 3 then it check for individual month wise, is there any way to add the above two formulas

    Both formulas are working fine with one if statement, both should work based on C27 value

    Regards
    Sagar

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Can't you do a nested IF, if C27=1 use formula 1, if C27=3 use formula 2

    =IF($C$27=1,IF(Evaluation!$C$27=1,SUMPRODUCT(--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y"))),IF(C27=3,IF(Evaluation!$C$27=3,SUMPRODUCT(--($E$6:$E$2000-DAY($E$6:$E$2000)+1=EOMONTH(Evaluation!$C$29,-1)+1),--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y"))),""))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi oldchippy,

    I tried the same way, but I am getting error, is there any other posibilities

    Regards
    Sagar

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Are you getting a result from one or the other (not both at the same time), based on the value in C27

  5. #5
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi,

    Based on "Evaluation C27"value(1 or 3) our formula has to work.

    if Evaluation C27=1, First formula results, if it is 3 second formula value (both formula in single cell)

    Regards
    Sagar

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If both work individually, then there must be a problem with the nested IF, can you check it again?

  7. #7
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi,

    finally I am able to fix the problem with the following formula
    =IF(Evaluation!$C$27=1,SUMPRODUCT(--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y")),SUMPRODUCT(--($E$6:$E$2000-DAY($E$6:$E$2000)+1=EOMONTH(Evaluation!$C$29,-1)+1),--(INDEX($O$6:$V$2000,0,MATCH($BX6,$O$4:$V$4,0))=BY$5&"Y")))

    Thanks for all your efforts
    Sagar

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Well done Sagar I'm glad you worked it out - 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)

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