# Using HLOOKUP and attempting to find the 2nd row and one cell over

1. ## Using HLOOKUP and attempting to find the 2nd row and one cell over

sheet1.xlsxsheet2.xlsxHello all,

I'm very amateur in the world of Excel formulas. I have been attempting to find the right way to find certain cells. I'm unsure if I should be using match or hlookup. Please see my scenario below though:

2 excel sheets

Sheet 1: Has information only on 2 rows and 2 rows only
Sheet 2: I need to format info from Sheet 1 into a specific format

 Bananas 1 2 3 4 5 6 Apples 1 2 3 4 5 6 Oranges 1 2 3 4 5 6 Pears 1 2 3 4 5 6 normal split smushed blended fried cut normal split smushed blended cut normal blended cut normal split smushed blended cut

 1 2 3 4 5 6 Bananas Apples Oranges Pears

My issue is that the formatting completely changes from sheet 1 to sheet 2. I have tried the following formula on sheet 2: =hlookup(a2,'[sheet1'!\$A\$1:\$AB\$2,2,FALSE)

This gives me the cell right under Bananas, when in truth I need to find the cell over to the right of it to show me "normal" in the 2nd row. Is there any way for me to choose the 2nd row but the cell over to right instead? Or if I needed to find the cell 2 over? I do apologize if this is confusing as I'm unsure of how to show the issue appropriately.

I have attached my sheets for examples if that helps.

2. ## Re: Using HLOOKUP and attempting to find the 2nd row and one cell over

=INDEX(\$A\$2:\$AB\$2,MATCH(\$A7,\$A\$1:\$AB\$1,0)+COLUMNS(\$B7:B7))

3. ## Re: Using HLOOKUP and attempting to find the 2nd row and one cell over

Hi,

Does the attached help?

4. ## Re: Using HLOOKUP and attempting to find the 2nd row and one cell over

Originally Posted by ramananhrm

=INDEX(\$A\$2:\$AB\$2,MATCH(\$A7,\$A\$1:\$AB\$1,0)+COLUMNS(\$B7:B7))
Thank you so much for your swift reply and awesome example! I will have to use this from now on!

5. ## Re: Using HLOOKUP and attempting to find the 2nd row and one cell over

Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

In future, to mark your thread as Solved, you can do the following -

Incase your issue is not solved, you can undo it as follows -

Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1