+ Reply to Thread
Results 1 to 3 of 3

Vlookup from one sheet to the other

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    Work Office 365 Home 2019
    Posts
    427

    Exclamation Vlookup from one sheet to the other

    Hi Guys,

    I'm not sure if this is in the right area, but thought I'd give it a shot,

    I've attached a spreadsheet with three tabs. Basically, what I'd like is for each tab to look at the previous tab and match the data in column B. Then if there's a match look at whether the number in column B is greater, the same or lesser. If it's less I want a "2" inserting in column C, if it's more, a "1" and if it's the same a "3". If there's no match then insert a "4".

    In my example, I want "Previous Sheet" to look at "Original Sheet" and "New Sheet" to look at "Previous Sheet" (Further sheets will be added as time goes on). So I'm guessing that the solution will have to reside within the sheet.

    Any ideas?

    Many Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Vlookup from one sheet to the other

    You mention numbers in column B, but I see only letters. Can you provide a sample workbook with more realistic data?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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,192

    Re: Vlookup from one sheet to the other

    I used a "helper" column E in "Previous" with the following formula ..

    in E3 and copy down

    =IFERROR(INDEX('Original Sheet'!$A$3:$A$8,MATCH('Previous Sheet'!B3,'Original Sheet'!$B$3:$B$8,0)),0)

    No match returns 0

    In C3 and copy down

    =IF(E3=0,4,IF(A3<E3,1,IF(A3=E3,3,IF(A3>E3,2))))

    Repeat for "Next" vs "Previous"

    If you have a standardised naming convention for your sheets it might be possible to generate a "generic" set of formulae

+ 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. Replies: 2
    Last Post: 03-19-2014, 11:59 AM
  2. Replies: 6
    Last Post: 11-25-2013, 12:13 PM
  3. Vlookup to filter data from 2 sheet and compile to one sheet??
    By Superslinky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 07:21 PM
  4. VLOOKUP table on one sheet that references every sheet in workbook
    By sportsman56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2013, 12:22 PM
  5. Create VLOOKUP or INDEX/MATCH to copy values from Sheet 2 to Sheet 1
    By leog1969 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-03-2013, 05:58 PM
  6. Replies: 7
    Last Post: 12-16-2012, 04:24 PM
  7. [SOLVED] how to multiple vlookup from input sheet to output sheet
    By nur2544 in forum Excel General
    Replies: 7
    Last Post: 11-21-2012, 01:48 AM

Tags for this Thread

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