SOLVED

Find a specific list entry and start sequence?

%3CLINGO-SUB%20id%3D%22lingo-sub-2931489%22%20slang%3D%22en-US%22%3EFind%20a%20specific%20list%20entry%20and%20start%20sequence%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2931489%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20figure%20out%20how%20to%20find%20the%20match%20for%20an%20input%20cell%20in%20a%20list%2C%20and%20begin%20a%20sequence%20counting%20up%20from%20this%20point%20in%20said%20list.%20See%20attached%20screenshot.%20For%20example%2C%20I%20have%20a%20list%20of%20all%20of%20the%20weeks%20in%20the%20year%2C%20as%20well%20as%20a%20cell%20with%20the%20%22start%20week%22%20for%20a%20project%20(A1).%20I%20also%20have%20the%20project%20duration%20(A2).%20My%20goal%20is%20to%20scan%20the%20list%20of%20weeks%2C%20find%20the%20cell%20that%20contains%20the%20%22Start%20Week%22%20value%2C%20and%20then%20begin%20counting%20up%20from%20there%20to%20create%20a%20list%20of%20project%20weeks%20based%20on%20the%20duration%20in%20A2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2931489%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2931725%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20a%20specific%20list%20entry%20and%20start%20sequence%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2931725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1208513%22%20target%3D%22_blank%22%3E%40alliejdawson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20is%20it%20possible%20for%20you%20to%20attach%20the%20actual%20spreadsheet%20rather%20than%20an%20image%3F%20Delete%20(or%20modify)%20any%20data%20that%20are%20proprietary%20or%20confidential%20first....or%20give%20us%20%26nbsp%3Bmade-up%20project%20names%20(or%20whatever).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESecond%3A%20when%20you%20say%20%22%3CSPAN%3E%3CEM%3Efind%20the%20cell%20that%20contains%20the%20%22Start%20Week%22%20value%2C%20and%20then%20begin%20counting%20%3CU%3E%3CSTRONG%3Eup%3C%2FSTRONG%3E%20%3C%2FU%3Efrom%20there%20to%20create%20a%20list%20of%20project%20weeks%20based%20on%20the%20duration%20in%20A2%2C%3C%2FEM%3E%22%20the%20word%20up%20needs%20some%20clarification.%20Visually%2C%20%3CU%3E%3CSTRONG%3E%22up%22%20i%3C%2FSTRONG%3E%3C%2FU%3En%20your%20screen%20shot%20would%20be%20going%20backwards%20in%20time%3B%20do%20you%20mean%20that%3F%20l%20don't%20think%20you%20do%2C%20but%20since%20words%20are%20important%2C%20I%20want%20to%20make%20sure.....so%20please%20confirm%20what%20you%20actually%20mean.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI've%20attached%20a%20spreadsheet%20that%20does%20some%20of%20what%20you%20want%2C%20perhaps%20enough%20to%20point%20you%20in%20the%20desired%20direction.%20This%20uses%20the%26nbsp%3B%3C%2FSPAN%3Efunction%20FILTER%2C%20which%20does%20require%20the%20newest%20version%20of%20Excel%20to%20work.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mathetes_0-1636126925380.png%22%20style%3D%22width%3A%20534px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F324588i8A2ADAC8348B798E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mathetes_0-1636126925380.png%22%20alt%3D%22mathetes_0-1636126925380.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2935716%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20a%20specific%20list%20entry%20and%20start%20sequence%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2935716%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1208513%22%20target%3D%22_blank%22%3E%40alliejdawson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESomething%20like%20this%3F%3C%2FP%3E%3CPRE%3EC1%20formula%3A%26nbsp%3B%3D%22F%22%26amp%3BFILTER(IF(%24F%241%3A%24F%2446%3D%24B%241%2CROW(%24F%241%3A%24F%2446)-MIN(ROW(%24F%241%3A%24F%2446))%2B1)%2CISNUMBER(IF(%24F%241%3A%24F%2446%3D%24B%241%2CROW(%24F%241%3A%24F%2446)-MIN(ROW(%24F%241%3A%24F%2446))%2B1)))%3C%2FPRE%3E%3CPRE%3ED1%20formula%3A%26nbsp%3B%3D%22F%22%26amp%3BFILTER(IF(%24F%241%3A%24F%2446%3D%24B%241%2CROW(%24F%241%3A%24F%2446)-MIN(ROW(%24F%241%3A%24F%2446))%2B1)%2CISNUMBER(IF(%24F%241%3A%24F%2446%3D%24B%241%2CROW(%24F%241%3A%24F%2446)-MIN(ROW(%24F%241%3A%24F%2446))%2B1)))%26amp%3B%22%3A%22%26amp%3B%22F46%22%3C%2FPRE%3E%3CP%3EC5%3AC46%20formula%3A%26nbsp%3B%3DIF(D5%3D1%2C%22Start%22%2C%22%22)%3C%2FP%3E%3CPRE%3ED5%3AD46%20formula%3A%26nbsp%3B%3DIFERROR(FILTER(ROW(INDIRECT(%24C%241)%3AOFFSET(INDIRECT(%24C%241)%2C%24B%242-1%2C0))-MIN(ROW(INDIRECT(%24C%241)%3AOFFSET(INDIRECT(%24C%241)%2C%24B%242-1%2C0)))%2B1%2CISNUMBER(FIND(INDIRECT(%24C%241)%3AOFFSET(INDIRECT(%24C%241)%2C%24B%242-1%2C0)%2CF5)))%2C%22%22)%3C%2FPRE%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%22Yea_So_1-1636282840966.png%22%20style%3D%22width%3A%20683px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F324846iA774FA867881ACA6%2Fimage-dimensions%2F683x425%3Fv%3Dv2%22%20width%3D%22683%22%20height%3D%22425%22%20role%3D%22button%22%20title%3D%22Yea_So_1-1636282840966.png%22%20alt%3D%22Yea_So_1-1636282840966.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Echeers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi there,

 

I am trying to figure out how to find the match for an input cell in a list, and begin a sequence counting up from this point in said list. See attached screenshot. For example, I have a list of all of the weeks in the year, as well as a cell with the "start week" for a project (A1). I also have the project duration (A2). My goal is to scan the list of weeks, find the cell that contains the "Start Week" value, and then begin counting up from there to create a list of project weeks based on the duration in A2.

 

Please help!!

3 Replies

@alliejdawson 

 

First, is it possible for you to attach the actual spreadsheet rather than an image? Delete (or modify) any data that are proprietary or confidential first....or give us  made-up project names (or whatever).

 

Second: when you say "find the cell that contains the "Start Week" value, and then begin counting up from there to create a list of project weeks based on the duration in A2," the word up needs some clarification. Visually, "up" in your screen shot would be going backwards in time; do you mean that? l don't think you do, but since words are important, I want to make sure.....so please confirm what you actually mean. 

 

I've attached a spreadsheet that does some of what you want, perhaps enough to point you in the desired direction. This uses the function FILTER, which does require the newest version of Excel to work.

mathetes_0-1636126925380.png

 

best response confirmed by alliejdawson (New Contributor)
Solution

@alliejdawson 

 

Something like this?

C1 formula: ="F"&FILTER(IF($F$1:$F$46=$B$1,ROW($F$1:$F$46)-MIN(ROW($F$1:$F$46))+1),ISNUMBER(IF($F$1:$F$46=$B$1,ROW($F$1:$F$46)-MIN(ROW($F$1:$F$46))+1)))
D1 formula: ="F"&FILTER(IF($F$1:$F$46=$B$1,ROW($F$1:$F$46)-MIN(ROW($F$1:$F$46))+1),ISNUMBER(IF($F$1:$F$46=$B$1,ROW($F$1:$F$46)-MIN(ROW($F$1:$F$46))+1)))&":"&"F46"

C5:C46 formula: =IF(D5=1,"Start","")

D5:D46 formula: =IFERROR(FILTER(ROW(INDIRECT($C$1):OFFSET(INDIRECT($C$1),$B$2-1,0))-MIN(ROW(INDIRECT($C$1):OFFSET(INDIRECT($C$1),$B$2-1,0)))+1,ISNUMBER(FIND(INDIRECT($C$1):OFFSET(INDIRECT($C$1),$B$2-1,0),F5))),"")

 

Yea_So_1-1636282840966.png

 

cheers

 

Yes! This worked perfectly. Thank you so very much!