+ Reply to Thread
Results 1 to 7 of 7

formula to return yes if 2 columns meet criteria, and date from master row

  1. #1
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    formula to return yes if 2 columns meet criteria, and date from master row

    Hi guys,

    I'm trying to figure out a way to return yes on weekly created sheets so i don't have to check if a child is funded or not every week.

    If you look at "grant" sheet you will see a list of children in columns A and B, then Weeks in row C3 onwards
    Then
    On each weekly added sheet cell D1 has weeks date formatted DD.WW which corresponds to "GRANT" C3:onwards
    On each weekly added sheet in cells D3:D91 i have a list of surnames
    in E3:E91 I have a list of names

    now what i'd like to achieve is to get a formula on weekly added sheet in column G (to be copied down), that returns either yes or no, if a child has value>0 on "Grant" sheet that matches weeks sheet with week from "GRANT" sheet.

    Is there any way? Tried sumifs but, never done something like it and thought someone would do their magic and i could learn new things same time.





    workbook attached (don't get scared with ref# as i removed some sheets.
    Fees Leigh 13.xlsx

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

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    In G3 of weekly sheet try this arry formula

    =IF(INDEX(GRANT!$C$6:$AM$82,MATCH([@[First Name]]&[@Surname],GRANT!$A$6:$A$82&GRANT!$B$6:$B$82,0),MATCH($D$1,GRANT!$C$3:$AM$3,0))>0,"Yes","No")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    amazing how fast you replied many thanks! I appreciate lots

    hmm returns N/A

    have 2007 at work still so changed the formula to
    =IF(INDEX(GRANT!$C$6:$AM$82,MATCH([First Name]&[Surname],GRANT!$A$6:$A$82&GRANT!$B$6:$B$82,0),MATCH($D$1,GRANT!$C$3:$AM$3,0))>0,"Yes","No")

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

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    On the 31.12 tab change date to reflect 31.12.2012

    also remember to Ctrl+Shift+Enter

  5. #5
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    Okay but if I change the date to 31/12/12 which was text before another formula wont work.. (sorry to be such a pain I'm learning as I go and creating my little Frankenstein... bit by bit, it's really challending and interesting)

    So all my tabs are named in DD.MM format
    and I have a formula in each weekly sheet like:
    =SUMIFS(INDIRECT(TEXT($D$1-7, "DD.MM")&"!O:O"),INDIRECT(TEXT($D$1-7, "DD.MM")&"!D:D"),D3,INDIRECT(TEXT($D$1-7, "DD.MM")&"!E:E"),E3)

    so i guess D1 has to be in that format as well?
    i have a tab called "INCOME" which checks all the sheets and if D1 is A4+ then B4 gets info from that weeks tab cell K1


    but to work it has to be in DD.MM ;/

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

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    You dont have to change the tab name

    On the tab named 31.12 cell D1 has value 12/31/2013 instead of 12/31/2012, which is causing the N/A error.

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    it returns all as YES no idea why

    ok fixed i knew it was the reference, had to refer to i.ex d3 e3

    working now thank you! You're my star!
    Last edited by annazet; 07-08-2013 at 08:00 AM.

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

    Re: formula to return yes if 2 columns meet criteria, and date from master row

    works for me..see attached (tab 31.12)
    Attached Files Attached Files

+ 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