2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Pull text X number of rows/Y number of columns away from cell

Our take

If you're looking to streamline data extraction from your Excel sheet, consider using the OFFSET function effectively. In your scenario, you want to reference a vendor ID in one sheet, then navigate to find the corresponding vendor name by offsetting rows and columns. The challenge arises when dealing with varying row counts for different vendors. By strategically combining OFFSET with a dynamic reference, you can create a flexible solution that adapts to these discrepancies, ensuring your data collection process remains efficient and accurate.

I have an Excel sheet (Home and Business 2024) that I'm trying to collect some information from to turn into a flat file. The file looks something like this.

https://preview.redd.it/4vmjp293clzg1.png?width=653&format=png&auto=webp&s=e9097394ebde99c909e5b99ab890611b6a6a38aa

I have a list of all the vendor IDs in a second sheet, and I want to be able to say "Find [vendor ID], go one row down, and go two cells to the right" to find the Vendor Name, for example.

I have tried working with the OFFSET() formula, but I'm getting thrown off by trying to make the first argument of OFFSET jump from 101 on the first row to 102 on the second row

https://preview.redd.it/w17wo2uhelzg1.png?width=473&format=png&auto=webp&s=01e89fc523bd1004590b63a78b3f7c8e55adc349

Like this, but instead of Sheet1!B1, I want to be using Sheet2!B2 (101) to look up the location Sheet1!B1 as the OFFSET reference. That way when I drag it down one, it would use Sheet1B3 (102) to look up the location Sheet1!B7.

I was trying to play around with CELL("address") but not having any luck. Would appreciate any help you can offer!

ETA: There's also not always a consistent number of rows between e.g. Vendor 101's Legal Name and Vendor 102's legal name, which is why I want to offset from the Vendor ID.

submitted by /u/rainelbow
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#row zero#rows.com#Excel alternatives for data analysis#Excel compatibility#financial modeling with spreadsheets#Excel alternatives#natural language processing for spreadsheets#AI formula generation techniques#generative AI for data analysis#business intelligence tools#formula generator#Excel#vendor ID#OFFSET()#vendor name#flat file#Cell address#rows#columns#Sheet1