+ Reply to Thread
Results 1 to 8 of 8

Formula to show the value from the Cell Below as per the lookup value

  1. #1
    Forum Contributor
    Join Date
    06-03-2004
    Location
    India
    MS-Off Ver
    2013
    Posts
    205

    Formula to show the value from the Cell Below as per the lookup value

    Hello All,
    I am using Excel 2010
    I have attached a sample of my problem.
    I want a formula to be typed in Cell C1 (colored for sake of explanation) and drag it across then it should show the respective values below that name in Col D, Col E, Col F etc
    Eg: Lookup value is in C1 which should be matched in Col A and when dragged across should show the respective values
    The value will change every time in the colored cell (see After Sheet)
    Hope this is clear
    TIA
    Rashid
    Attached Files Attached Files
    Last edited by prkhan56; 09-14-2015 at 01:01 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Formula to show the value from the Cell Below as per the lookup value

    Try this

    =IFERROR(INDEX($A$2:$A$12,SMALL(IF($A$2:$A$12>=$B$2,ROW($A$2:$A$12)-ROW($A$2)+1),COLUMNS(($A$1:A1)))),"")

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula to show the value from the Cell Below as per the lookup value

    =VLookup(B2,After!$C$1:$G$1,column()-2,0)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to show the value from the Cell Below as per the lookup value

    Not real sure what you're wanting to do.

    Maybe this entered in D1 and copied across:

    =INDEX(Before!$A:$A,MATCH($C1,Before!$A:$A,0)+COLUMNS($D1:D1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    02-01-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    26

    Re: Formula to show the value from the Cell Below as per the lookup value

    If the values will be strictly numbers see if this works.

    =IFERROR(IF(MATCH(After!C$2,Before!$A$2:$A$12,0),MATCH(After!C$2,Before!$A$2:$A$12,0)+1,),"")

    Lookup Problem - Excel Forum.xlsx

  6. #6
    Forum Contributor
    Join Date
    06-03-2004
    Location
    India
    MS-Off Ver
    2013
    Posts
    205

    Re: Formula to show the value from the Cell Below as per the lookup value

    Thanks to John, Tony & Simon.
    It works great. You are all great help.

    Oeldere your formula only works if the value entered is 1. But for other values it shows #N/A.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to show the value from the Cell Below as per the lookup value

    You're welcome. We appreciate the feedback!

  8. #8
    Registered User
    Join Date
    02-01-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    26

    Re: Formula to show the value from the Cell Below as per the lookup value

    If you index the value if true section it will work with any values. (see below)

    =IFERROR(IF(MATCH(After!C$2,Before!$A$2:$A$12,0),INDEX(Before!$A$2:$A$12,MATCH(After!C$2,Before!$A$2:$A$12,0)+1,1),),"")

+ 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] Need to add to my formula so if a cell is blank the formula doesn't show
    By Rebeccak28 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 05:22 AM
  2. [SOLVED] formula to show value of one cell in another
    By jc2398 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 06-08-2014, 07:39 PM
  3. lookup value and show last cell not blank
    By tonnerre2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 07:30 PM
  4. Replies: 2
    Last Post: 11-13-2012, 03:51 PM
  5. Replies: 1
    Last Post: 07-26-2012, 03:49 PM
  6. [SOLVED] Formula result will not show when formula is copied to another cell
    By nabraham00 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 01:03 PM
  7. Replies: 0
    Last Post: 09-04-2011, 09:14 AM

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