Match and index functions based selection parts

Discuss the spreadsheet application
Post Reply
User avatar
chandrankrishnan
Posts: 63
Joined: Sat Mar 05, 2016 1:21 pm

Match and index functions based selection parts

Post by chandrankrishnan »

Hi all,Good day,
For the attached sheet,i tried with match,index formula and lookup formula too.But by output doesnot meet my requirements.

for the green marked part to be searched(D55342E07B1E00R,value:1k) and its corresponding Locations to shown without duplicates.then next parts etc..,,,,, like this.

can anyone guide me this.
Attachments
test1.ods
(26.78 KiB) Downloaded 96 times
OpenOffice 4.1.2 windows vista
User avatar
Lupp
Volunteer
Posts: 3549
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Match and index functions based selection parts

Post by Lupp »

First of all I would suggest you learn abut relative vs absolute addressing. Your formula in column A primarily suffers from wrongly addressing the ranges relative regarding the rows.

The more fundamental problem is that you expect to get all the matches, not only the first one. There is no standard function supporting this directly.
If you want to do it by functions, most likely applying AutoCalculate, there are two ways:
-1- Design user functions capable of supporting your needs. You cannot get the functionality with recorded macros.
-2- Dedicate a few helper columns to prepare the filtering.
Both these ways are demonstrated in the attached file. Concerning the first wy I didn't write a specialized function but used multi-porpose functions from my toolbox (not first quality yet). If you prefer to not permit my user code to run, only the second solution will work.

Without "macros" and some interaction instead an "Advanced Filter" might be the means of choice. (I personally rarely use the tool.)

What you meant by the "split output" (range C6:G15) I did not understand at all.
Attachments
ask91290_OQexampleReworked_1.ods
(93.32 KiB) Downloaded 90 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
chandrankrishnan
Posts: 63
Joined: Sat Mar 05, 2016 1:21 pm

Re: Match and index functions based selection parts

Post by chandrankrishnan »

Dear Lupp,
Thanks for the reply.I will use the 2nd way to get the output.
OpenOffice 4.1.2 windows vista
User avatar
Lupp
Volunteer
Posts: 3549
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Match and index functions based selection parts

Post by Lupp »

You are welcome.

However, you should consider to replace the previous second sheet with the only one I attach here. The difference is only in the formulas in column R where I had missed to reduce the range in which to search for matches in the appropriate way. It's about the subtrahend on the fourth parameter position of OFFSET().
Attachments
ask91290_OQexampleReworked_2.ods
(71.72 KiB) Downloaded 102 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
chandrankrishnan
Posts: 63
Joined: Sat Mar 05, 2016 1:21 pm

Re: Match and index functions based selection parts

Post by chandrankrishnan »

Dear Lupp,

Thanks for the reply and your good response.
OpenOffice 4.1.2 windows vista
Post Reply