SOLVED

INDEX and IF to show value from project plan

%3CLINGO-SUB%20id%3D%22lingo-sub-3203434%22%20slang%3D%22en-US%22%3EINDEX%20and%20IF%20to%20show%20value%20from%20project%20plan%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3203434%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20data%20set%20in%20the%20form%20of%20a%20project%20plan%2C%20and%20would%20like%20to%20create%20a%20monthly%20summary%20report%20of%20this%20plan%20as%20it's%20quite%20large.%20My%20excel%20skills%20are%20very%20basic%20and%20I%20think%20I'm%20in%20over%20my%20head!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20first%20picture%20is%20the%20layout%20I%20have%20for%20the%20plan%20and%20the%20second%20picture%20is%20what%20I%20want%20to%20extract%20into%20a%20table.%20In%20the%20second%20picture%20I've%20written%20in%20the%20cell%20in%20plain%20text%20what%20I%20would%20like%20it%20to%20return%20as%20I%20can't%20figure%20out%20the%20formula.%20The%20third%20picture%20is%20what%20the%20result%20should%20look%20like%2C%20but%20I've%20written%20it%20in%20manually%20to%20show%20an%20example.%20I%20think%20it%20would%20be%20INDEX%2C%20then%20IF%20for%20the%20arguments%2C%20then%20display%20a%20cell%20value%2C%20but%20I've%20gone%20around%20in%20circles%20watching%20tutorials%20and%20I'm%20not%20getting%20anywhere.%20Any%20help%20greatly%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture1.png%22%20style%3D%22width%3A%20395px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350674iF6CFA2866B4958C3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture1.png%22%20alt%3D%22Picture1.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture2.png%22%20style%3D%22width%3A%20527px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350675i9E305FFD3F9F1368%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture2.png%22%20alt%3D%22Picture2.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture3.png%22%20style%3D%22width%3A%20480px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350673i8B2404BFCBA6987A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture3.png%22%20alt%3D%22Picture3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3203434%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3203666%22%20slang%3D%22en-US%22%3ERe%3A%20INDEX%20and%20IF%20to%20show%20value%20from%20project%20plan%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3203666%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1315544%22%20target%3D%22_blank%22%3E%40Winter308%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20B6%3A%3C%2FP%3E%0A%3CP%3E%3DFILTER('Project%20Stage%20Plan'!C6%3AC520%2C'Project%20Stage%20Plan'!J6%3AJ520-DAY('Project%20Stage%20Plan'!J6%3AJ520)%3DTODAY()-DAY(TODAY())%2C%22%22)%3C%2FP%3E%0A%3CP%3EIn%20C6%3A%3C%2FP%3E%0A%3CP%3E%3DFILTER('Project%20Stage%20Plan'!C6%3AC520%2C('Project%20Stage%20Plan'!I6%3AI520%3CTODAY%3E%0A%3C%2FTODAY%3E%3C%2FP%3E%3CP%3EIn%20D6%3A%3C%2FP%3E%0A%3CP%3E%3DFILTER('Project%20Stage%20Plan'!C6%3AC520%2C('Project%20Stage%20Plan'!I6%3AI520%26gt%3B%3DTODAY())*('Project%20Stage%20Plan'!I6%3AI520%26lt%3B%3DTODAY()%2B14)*('Project%20Stage%20Plan'!E6%3AE520%26lt%3B100%25)%2C%22%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a data set in the form of a project plan, and would like to create a monthly summary report of this plan as it's quite large. My excel skills are very basic and I think I'm in over my head! 

 

The first picture is the layout I have for the plan and the second picture is what I want to extract into a table. In the second picture I've written in the cell in plain text what I would like it to return as I can't figure out the formula. The third picture is what the result should look like, but I've written it in manually to show an example. I think it would be INDEX, then IF for the arguments, then display a cell value, but I've gone around in circles watching tutorials and I'm not getting anywhere. Any help greatly appreciated. 

 

Picture1.pngPicture2.pngPicture3.png

 

 

3 Replies
best response confirmed by Winter308 (New Contributor)
Solution

@Winter308 

In B6:

=FILTER('Project Stage Plan'!C6:C520,'Project Stage Plan'!J6:J520-DAY('Project Stage Plan'!J6:J520)=TODAY()-DAY(TODAY()),"")

In C6:

=FILTER('Project Stage Plan'!C6:C520,('Project Stage Plan'!I6:I520<TODAY())*('Project Stage Plan'!E6:E520<100%),"")

In D6:

=FILTER('Project Stage Plan'!C6:C520,('Project Stage Plan'!I6:I520>=TODAY())*('Project Stage Plan'!I6:I520<=TODAY()+14)*('Project Stage Plan'!E6:E520<100%),"")

@Hans Vogelaar 

 

These work perfectly, thank you. 

 

Can you help me understand B6:

=FILTER('Project Stage Plan'!C6:C520,'Project Stage Plan'!J6:J520-DAY('Project Stage Plan'!J6:J520)=TODAY()-DAY(TODAY()),"")

 

Which part of the formula defines the date range?

It's currently correctly pulling out everything completed in Feb. If send this report at the end of March for example, will it automatically look at March or do I need to update a part of the formula?

 

So for example it should be from the first day of the current month to the last day of the current month.

 

Thank you 

@Winter308 

The formula will always look at the current month: February of 2022 now, March of 2022 next month, etc.

The "trick" is using date-DAY(date). This returns the last day of the month before date.

So 'Project Stage Plan'!J6:J520-DAY('Project Stage Plan'!J6:J520 returns the last day of the month before each completion date, and TODAY()-DAY(TODAY()) returns the last day of the month before the current date. If these are equal, the dates are in the same month.