+ Reply to Thread
Results 1 to 6 of 6

Lookup from one worksheet to the next across several different parameters

  1. #1
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    115

    Lookup from one worksheet to the next across several different parameters

    In the attached file, I need to match on "total capacity" worksheet - the name in column B to the year - 2019, to the tab marked with that year - to the SHIPS column. So in 2019, ships is column D.
    The issues are:
    Some years have additional names that aren't in my original list.
    Is there also a way to highlight or identify those that weren't on the original list.
    If not , that is okay, and even just to fill this in as is would really help.
    Attached Files Attached Files
    Last edited by dianaCatz; 09-10-2019 at 02:16 PM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Lookup from one worksheet to the next across several different parameters

    Not sure but try, put this on C3 (Sheet "Total Capacity") as Year Criteria :

    =TRIM(RIGHT(SUBSTITUTE(TRIM(B3)," ",REPT(" ",255)),255))+0

    And this on C9 (Sheet "Total Capacity") then copied down and cross :

    =IFERROR(IF($C$3=C$8,INDEX(INDIRECT("'"&$C$3&"'!D3:G500"),MATCH($B9,INDIRECT("'"&$C$3&"'!$C$3:$C$500"),0),MATCH(LOOKUP(2,1/NOT(ISBLANK($C$7:C$7)),$C$7:C$7),INDIRECT("'"&$C$3&"'!$D$2:$G$2"),0)),""),"")
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Lookup from one worksheet to the next across several different parameters

    This formula in D9 seems to work. I was able to drag it over and down. It doesn't have the trim function like azumi suggests though.
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Lookup from one worksheet to the next across several different parameters

    In order to catch new company names, I don't know how to do it on the main "Total Capacity"sheet, but I added this formula to B3 in each of the year tabs. It just shows a FALSE if something is not on the main sheet.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    115

    Re: Lookup from one worksheet to the next across several different parameters

    Quote Originally Posted by nigelbloomy View Post
    This formula in D9 seems to work. I was able to drag it over and down. It doesn't have the trim function like azumi suggests though.
    Please Login or Register  to view this content.
    Hi Nigelbloomy, how would I adjust your formula to get berths in column E? Or capacity in column F?

  6. #6
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Lookup from one worksheet to the next across several different parameters

    The simplest way would be to use this in D9 for "Ships"
    Please Login or Register  to view this content.
    Then for "Berths" it would be the same formula, but change the 2 to a 3. Capacity would be 4, and Market Share would be 5.

    It is possible to have some IF statements that populate the column based on the name in row 7, or you could even search for "Ships" or "Berths" in each tab to find the correct column. But if they generally stay the same, then this vlookup with indirect is a much easier way to go.

+ 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] lookup using multiple parameters
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2015, 12:19 PM
  2. [SOLVED] Looking for explanation for LOOKUP parameters like 7^7, 8^8, 9^9
    By xingo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2014, 07:58 AM
  3. Retrieving data from a worksheet to worksheet by two parameters
    By nicko1988 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2012, 03:41 AM
  4. Formula with multiple lookup parameters
    By h0mer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2009, 11:08 AM
  5. Lookup using 2 parameters
    By jacknjob in forum Excel General
    Replies: 1
    Last Post: 05-11-2007, 02:29 PM
  6. [SOLVED] LOOKUP but with 2 parameters ?
    By Maileen in forum Excel General
    Replies: 1
    Last Post: 02-22-2006, 01:55 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