Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
The forum (and all other resources in Chandoo.org) will be under maintenance and will be unavailable for a maximum of two hours on the first week of October 2023. The exact date, time and duration of the maintenance are subject to change. We regret the inconvience it may cause.
Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam
Post Spam and you Will Be Deleted as a User
When starting a new post, to receive a quicker and more targeted answer,
Please include a sample file in the initial post.
I need an UDF macro function for VLOOKUP to Return whole horizontal row values. ie when Select Drop Down list in sheet1 (Noun-Modifier), then
Sheet 2 Catted Value automatically populated as per example attached sample file. Could you resolve my query.
Used a combination of Power Query and Power Pivot to achieve your expected results as shown in the attached.
Unpivot your data in Power Query and then load the data into the data model to allow a measure to be built to show your data in a pivot table with a Pipe delimiter.
Jeya, you can write a VBA program that can find a row and do something with it, perhaps copy all its values somewhere. But it wouldn't be a UDF; a user-defined function cannot return a whole row, only a single value.
One correction: When I say you can't do it, I mean in a worksheet function. If you enter a worksheet function in a cell (eg "=SUM(A5:A23)"), it can return only a single value whether it's a built-in function or a VBA program you wrote yourself.
But if you're talking about a function called by another VBA program, that function can indeed return an Excel object, including a Row object. Which did you mean?
I'm not sure. I suppose it depends on this: What do you want to do with the row once your routine has identified it? There are usually ways to accomplish what you want, even if you can't do it the way you were asking about.