LOOKUP function to return row number

ameliiie

New Member
Joined
Feb 25, 2011
Messages
4
Hello,

I'm writing a formula that's supposed to use VLOOKUP and OFFSET to rearrange a matrix for bookkeeping.
Sheet1 contains the original data, Sheet2 is the new sheet. From Sheet two I want to lookup a certain category name in Sheet1 and use the row number of the row that contains the name.
Initially I started using ROW(VLOOKUP(...)) but realised that VLOOPKUP returns the value, not the cell.
Any idea how I can get the row?
Thanks for any tips!


In more detail:
My data is organised somewhat like the following abc example. I now use offset to establish a matrix over A.a-c. Then find the category name I need to do the value lookup in and the category head row to knnow by how many rows to offset the lookup matrix. Transposing doesn't work, because the matrix must remain easily handleable with using Excel matrix commands.

Sheet 1:
A
a valueAa
b valueAb
c valueAc
B
a valueBa
b valueBb
c valueBc

Sheet 2:
A a valueAa
B a value Ba

A b valueAb
B b value Bb

A c valueAc
B c valueBc
<!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
<!-- controls -->​
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top