+ Reply to Thread
Results 1 to 5 of 5

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

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    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.
    Last edited by sc0o8i3; 12-30-2013 at 06:57 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

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

    Please try this function

    =INDEX($A$2:$AB$2,MATCH($A7,$A$1:$AB$1,0)+COLUMNS($B7:B7))
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,419

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

    Hi,

    Does the attached help?
    Attached Files Attached Files
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

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

    Quote Originally Posted by ramananhrm View Post
    Please try this function

    =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. #5
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,162

    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 -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    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.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Attempting to define content in cell based on update of other cell in same row.
    By ychartra01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 07:04 PM
  2. Attempting to lock dates into a cell after they are populated
    By svtcobrar_410 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 01:08 PM
  3. Nesting vlookup and hlookup to find a value
    By macquarl in forum Excel General
    Replies: 1
    Last Post: 10-15-2010, 05:04 PM
  4. How to use HLOOKUP or other command to find a value within a range
    By antwash in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2006, 12:10 PM
  5. How do I find a value in an array (VLOOKUP? HLOOKUP?)
    By M Skabialka in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-10-2005, 11:06 PM

Bookmarks

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