+ Reply to Thread
Results 1 to 4 of 4

Numbers based on True or False in a differnt sheet

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Essex, England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Question Numbers based on True or False in a differnt sheet

    Hi all,
    I have one sheet showing a Gantt chart. This is based on the 'and' function and True or False. This works. However I am trying to calculate 'Disciplines' on T2, which should only calculate if the corresponding date is NOT false on the Gantt.

    I thought I had got it based on the below, but this does not seem to work as clean as I would like. I am uploading the workbook in the hope someone can give their view.

    =IFERROR(IF(INDEX(Gantt_FTE,MATCH($B5,'T1'!$AC$3:$AC$32,0),MATCH(D$4,'T1'!$AE$2:$BP$2,0)<>"FALSE"),INDEX(Gantt_FTE,MATCH($B5,'T1'!$A$3:$A$32,0),MATCH($C5,'T1'!$AD$2:$AF$2,0))),0)


    Any thoughts would be most appreciated.


    Thanks,

    -CL
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    51,084

    Re: Numbers based on True or False in a differnt sheet

    Hi and welcome to the forum

    This monster will do what you want...
    =IF(AND(D$4>=INDEX('T1'!$X$2:$X$32,MATCH('T2'!$B5,'T1'!$AC$2:$AC$32,0)), D$4<=INDEX('T1'!$Y$2:$Y$32,MATCH('T2'!$B5,'T1'!$AC$2:$AC$32,0))),INDEX('T1'!$AD$2:$AF$32,MATCH('T2'!$B5,'T1'!$AC$2:$AC$32,0),MATCH('T2'!$C5,'T1'!$AD$2:$AF$2,0)),"")

    You will need to change the heading in sheet1 AF2 to match the headings in sheet2 C7 etc

    Alsdo, you dont really need to put that formula into the table in sheet1...
    =(AND(AG$2>=$X3,AG$2<=$Y3))
    CF works on a TRUE/FALSE answer, so if you just use that as the rule in CF, it will fill in the cells for you...
    =AND(AG$2>=$X3,AG$2<=$Y3)

    And you only need that 1 rule, all FALSE's will stay white
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-14-2013
    Location
    Essex, England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Thumbs up Re: Numbers based on True or False in a differnt sheet

    Worked a charm - Thank you!!


    Much appreciated!!

    -CL

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,162

    Re: Numbers based on True or False in a differnt sheet

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  2. TRUE or FALSE for a range of numbers
    By Caedmonball19 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2013, 12:41 PM
  3. Replies: 3
    Last Post: 02-11-2012, 03:07 PM
  4. Formula that separates TRUE/FALSE From Numbers
    By artiststevens in forum Excel General
    Replies: 2
    Last Post: 12-15-2010, 01:43 AM
  5. Sum values based on TRUE/FALSE property on different sheet?
    By grantpanderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2010, 11:38 AM

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