+ Reply to Thread
Results 1 to 6 of 6

Requesting help with multiple tabs

  1. #1
    Registered User
    Join Date
    03-25-2016
    Location
    Rotterdam
    MS-Off Ver
    Office 2016
    Posts
    3

    Requesting help with multiple tabs

    Hi,

    So I have a request at my job to set up a sheet where data is being loaded in from another tab.


    The tabs are as followed:

    - Order
    - Supply
    - Avg2015
    - Avg2016


    So the data has to be loaded into the Order tab which contains the following headings:

    Order:
    SKU (product number)
    Name
    Supply
    Avg2015
    Avg2016

    Supply:
    SKU (product number)
    qty (quantity)

    Avg2015 & Avg2016:
    SKU (product Number)
    Average

    Naturally these tabs have more data but this is the data that's required to be placed on the Order tab

    So SKU and Name are present on the Order tab, but i need to load in supply from the Supply tab, Avg2015 from the Avg2015 tab and.. you guessed it.. Avg2016 from the Avg2016 tab

    However they only need to be loaded into the Order Tab IF the SKU is present on both sheets and it needs to ignore SKU's that arent present on the orders.


    I did some google-ing and came across the following formula:

    ='Supply'! IF(A1-A9999='Order')

    I am quite new when it comes to excel and this isnt working sadly.
    Can anyone help me out?

  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,208

    Re: Requesting help with multiple tabs

    Post a small sample Excel file.

    Click "Go Advanced" then "Manage Attachments" to upload a file

  3. #3
    Registered User
    Join Date
    03-25-2016
    Location
    Rotterdam
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Requesting help with multiple tabs

    Hi thanks for your reply.

    I made an example file.

    so basically if the SKU is not present on the order tab, it shouldnt load it in from the other tab
    Attached Files Attached Files

  4. #4
    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,208

    Re: Requesting help with multiple tabs

    These will return data from appropriate sheet where SKUs match or blank if not matched.

    =IFERROR(VLOOKUP($A3,Supply!$A$3:$B$29,2,0),"") Supply

    =IFERROR(VLOOKUP($A3,Ave2015!$A$3:$B$29,2,0),"") Avg2015

    =IFERROR(VLOOKUP($A3,Ave2016!$A$3:$B$29,2,0),"") Avg2016

    Copy formulas down

    Is this what you require?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-25-2016
    Location
    Rotterdam
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Requesting help with multiple tabs

    Hi thanks again for your reply. I've been trying your code but I'm getting an error.

    so I've been trying to break down the formula to understand it for future reference

    =IFERROR = Returns a value you specify if a formula evaluates to an error
    so VLOOKUP check in vertical columns
    $A3 is naturally the SKU as a base value
    then Supply!$A$3:$B$29 defines the A3 to B29 cells in the supply tab.

    I dont understand the ,2,0 though, but if i remove it it states too few values defined.

    the ,"" is if its not present it wont show I'm assuming?

  6. #6
    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,208

    Re: Requesting help with multiple tabs

    =IFERROR(VLOOKUP($A3,Ave2016!$A$3:$B$29,2,0),"")

    the "2" refers to the (relative) column in the range: so we have two columns A & B so we match A3 against column A and get the result from column B (column 2)

    "0" says get exact match,

    and "" is the error condition (null) but equally could be "SKU not found"

    =IFERROR(VLOOKUP($A3,Ave2016!$A$3:$B$29,2,0),"SKU not found")

+ 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] VBA code to merge multiple sheet with multiple tabs into one workbook in different tabs
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2015, 07:42 AM
  2. Tabs, Can I add multiple tabs and name then in a repeating number?
    By mazzonem002 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2014, 08:52 AM
  3. [SOLVED] summing multiple sub-tabs where each sub tabs row data is not the same
    By waternut in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-11-2014, 01:44 PM
  4. [SOLVED] Requesting help returning text values from criteria based on multiple columns
    By dzarrabi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2013, 08:16 AM
  5. Replies: 0
    Last Post: 04-08-2013, 12:15 PM
  6. Replies: 6
    Last Post: 02-01-2012, 05:29 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