+ Reply to Thread
Results 1 to 3 of 3

Pulling Matching data from different sheets? VLOOKUP?

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2007
    Posts
    1

    Pulling Matching data from different sheets? VLOOKUP?

    New to the forum, and might be considered an "intermediate" Excel user. I need an expert to weigh in here tho!
    For piece sales reporting I need to create a book that has a summary sheet pulling sales data from other sheets and reporting the results in a single column for each month. I'm thinking VLOOKUP may be an option, but I'm getting #N/A in cells when there is no data for a particular month. I'd like to lose the #N/A issue, and also total the actual data at the bottom of the summary columns, but am having no luck there. Is VLOOKUP really the best option for this? See the attached book for a sample.

    Any suggestions or help is very much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Pulling Matching data from different sheets? VLOOKUP?

    Try

    =IF(ISNA(VLOOKUP(A2,'Jan15'!A$2:C$233,3,FALSE)),"",VLOOKUP(A2,'Jan15'!A$2:C$233,3,FALSE))

    in C2 and copy down

  3. #3
    Forum Moderator - RIP 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
    29,464

    Re: Pulling Matching data from different sheets? VLOOKUP?

    Hi,

    To get rid of the #N/A just wrap the formula in an =IFERROR(your_formula,0). Your total will then work.

    But before going too far consider whether this is the best way.
    You are making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it. Yours exhibits all those features.


    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So before you get too far with this I'd create a single sheet database that contains the same three columns you currently have plus a 4th column to hold the dates.

    The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.
    Richard Buttrey

    RIP - d. 06/10/2022

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

+ 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] INDEX-MATCH or VLookup for pulling in matching data?
    By alexx579 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2016, 01:45 AM
  2. INDEX-MATCH or VLookup for pulling in matching data?
    By alexx579 in forum Excel General
    Replies: 4
    Last Post: 04-25-2016, 09:24 PM
  3. [SOLVED] Matching codes on different sheets and pulling relevant data across?
    By Markg76 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2013, 08:14 AM
  4. Matching data from multiple sheets and pulling into list on new sheet
    By chandlerbenet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2013, 12:05 PM
  5. vlookup help, pulling info from two sheets and matching
    By putitwhere in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 04:32 PM
  6. Replies: 3
    Last Post: 10-28-2010, 12:31 PM
  7. Replies: 1
    Last Post: 07-14-2010, 07:08 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