Formula to find value between rows with matching data

%3CLINGO-SUB%20id%3D%22lingo-sub-2097294%22%20slang%3D%22en-US%22%3EFormula%20to%20find%20value%20between%20rows%20with%20matching%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2097294%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20get%20a%20formula%20that%20retrieves%20an%20amount%20from%20Sheet%201%20based%20on%20looking%20at%20the%20dates%20between%20rows%20specified%20for%20each%20persons%20ID.%20The%20problem%20I%20have%20is%20the%20format%20of%20data%2C%20as%20the%20ID%20is%20not%20against%20each%20date.%20Is%20there%20a%20way%20to%20lookup%20between%20rows%20containing%20certain%20values%3F%20So%20for%20instance...%20on%20Sheet%202%20I%20want%20to%20be%20able%20to%20type%20a%20specific%20date%20into%20a%20cell%20say%20the%2010%2F1%2F20%20%26amp%3B%20it%20will%20find%20the%20corresponding%20amount%20to%20matching%20date%20of%20each%20persons%20ID.%20So%20for%20Jenny%20%3CEM%3E(between%20rows%20containing%20her%20ID%203)%3C%2FEM%3E%20it%20would%20be%208%20%26amp%3B%20Tony%20%3CEM%3E(between%20rows%20containing%20his%20ID%204)%3C%2FEM%3Ewould%20be%205.%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%22Jupiter1_0-1611653090575.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F249453i7CD5E0DB1DDE063B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jupiter1_0-1611653090575.png%22%20alt%3D%22Jupiter1_0-1611653090575.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20it%20is%20possible%20and%20appreciate%20any%20help%20on%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2097294%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2097366%22%20slang%3D%22de-DE%22%3ESubject%3A%20Formula%20to%20find%20value%20between%20rows%20with%20matching%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2097366%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F656507%22%20target%3D%22_blank%22%3E%40Jupiter1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20I%20am%20not%20the%20right%20one%20to%20suggest%20a%20solution%20in%20this%20direction.%20But%20with%20your%20permission%2C%20if%20I%20can%20recommend%20you%2C%20add%20a%20file%20(without%20sensitive%20data)%20to%20your%20project.%3C%2FP%3E%3CP%3EExplain%20your%20plans%20in%20relation%20to%20this%20file.%20So%20you%20can%20get%20a%20solution%20that%20is%20tailored%20to%20your%20needs%20much%20faster.%3C%2FP%3E%3CP%3EAt%20the%20same%20time%2C%20it%20is%20much%20easier%20for%20someone%20who%20wants%20to%20help%20understand%20the%20subject.%3C%2FP%3E%3CP%3EA%20win-win%20situation%20for%20everyone.%3C%2FP%3E%3CP%3EPlease%20no%20Picture%2C%20even%20if%20it%20is%20said%20that%20a%20picture%20can%20say%20a%20thousand%20words%2C%20it%20is%20certainly%20not%20in%20the%20case%20of%20Excel%2C%20on%20the%20contrary%20in%20some%20cases.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Knowing%20the%20Excel%20version%20and%20operating%20system%20would%20be%20an%20advantage.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20understanding%20and%20patience%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2097785%22%20slang%3D%22en-US%22%3EBetreff%3A%20Formula%20to%20find%20value%20between%20rows%20with%20matching%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2097785%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20prompt%20reply%20and%20the%20suggestion%20to%20upload%20a%20file.%3C%2FP%3E%3CP%3EThere%20is%20now%20a%20file%20attached%20with%20a%20few%20notes%20to%20explain%20my%20goal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2098260%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20to%20find%20value%20between%20rows%20with%20matching%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2098260%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F656507%22%20target%3D%22_blank%22%3E%40Jupiter1%3C%2FA%3E%26nbsp%3BAre%20you%20familiar%20with%20%22Get%26amp%3BTransform%20Data%22%20(a.k.a.%20Power%20Query)%3F%20Then%2C%20it%20will%20be%20not%20so%20difficult%20to%20extract%20the%20information%20you%20need.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternatively%2C%20if%20you%20are%20an%20MS365%20subscriber%20with%20access%20to%20the%20latest%20functions%20like%20FILTER%20and%20UNIQUE%2C%20it's%20relatively%20easy%20as%20well%20with%20some%20helper%20columns.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2098401%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20to%20find%20value%20between%20rows%20with%20matching%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2098401%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELuckily%20I%20have%20access%20to%20filter%20and%20unique%20function....so%20I'm%20excited%20it%20is%20achievable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELook%20forward%20to%20learning%20more%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi All,

 

I'm trying to get a formula that retrieves an amount from Sheet 1 based on looking at the dates between rows specified for each persons ID. The problem I have is the format of data, as the ID is not against each date. Is there a way to lookup between rows containing certain values? So for instance... on Sheet 2 I want to be able to type a specific date into a cell say the 10/1/20 & it will find the corresponding amount to matching date of each persons ID. So for Jenny (between rows containing her ID 3) it would be 8 & Tony (between rows containing his ID 4)would be 5.

 

Jupiter1_0-1611653090575.png

 

Hope it is possible and appreciate any help on this.

 

Many thanks

 

7 Replies

@Jupiter1 

Maybe I am not the right one to suggest a solution in this direction. But with your permission, if I can recommend you, add a file (without sensitive data) to your project.

Explain your plans in relation to this file. So you can get a solution that is tailored to your needs much faster.

At the same time, it is much easier for someone who wants to help to understand the subject.

A win-win situation for everyone.

Please no Picture, even if it is said that a picture can say a thousand words, it is certainly not in the case of Excel, on the contrary in some cases.

 

* Knowing the Excel version and operating system would also be an advantage.

 

Thank you for your understanding and patience

 

Nikolino

I know I don't know anything (Socrates)

Hi@Nikolino

Thank you for your prompt reply and the suggestion to upload a file.

There is now a file attached with a few notes to explain my goal.

 

Many thanks

@Jupiter1 Are you familiar with "Get&Transform Data" (a.k.a. Power Query)? Then, it will be not so difficult to extract the information you need. 

 

Alternatively, if you are an MS365 subscriber with access to the latest functions like FILTER and UNIQUE, it's relatively easy as well with some helper columns.

 

 

Hi@Riny_van_Eekelen 

 

Luckily I have access to filter and unique function....so I'm excited it is achievable.

 

Look forward to learning more

 

Thanks

@Jupiter1 Have a look at the attached! Perhaps not very pretty, but it works.

 

 

Hi@Riny_van_Eekelen

 

Fantastic....That is amazing!!!! It works like a dream now.

Thank you so so much for all your help.