+ Reply to Thread
Results 1 to 6 of 6

Using VLOOKUP with an IF statement, is this right?

  1. #1
    Registered User
    Join Date
    09-02-2015
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Using VLOOKUP with an IF statement, is this right?

    Hi All!
    I'm new here and pretty much an Excel novice. I'm looking for advice (or reference to another thread) regarding a VLOOKUP and IF statement formula.

    Background
    I complete a report every month. I get data for this "dashboard" report from several different sources. I have figured all out but one. On my dashboard sheet I need to be able to extract specific data from another sheet whose columns are consistent but rows may change.
    I am currently doing this manually and I know there's a formula out there that can make my life easier I just don't know how to get started. I've tried putting the VLOOPUP and IF statement together without success.

    I hope this makes sense. I'm officially at the end of my rope.

    I attached a sample document that I hope will clarify...

    Thanks in advance!

    Sample Excel.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Using VLOOKUP with an IF statement, is this right?

    What's your desired outcome? Can you provide a couple examples?

  3. #3
    Registered User
    Join Date
    09-02-2015
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Re: Using VLOOKUP with an IF statement, is this right?

    My desired outcome is to return one (or sum) value based on a couple of different variables.

    Example:
    I need to know what the total quantity of items sold from sheet 2 and put it on sheet 1 for a specific store and specific department.

    Honestly I don't know if I'm explaining it properly..

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Using VLOOKUP with an IF statement, is this right?

    Had to change some of the column headings to be consistent. Let me know if this is what you were looking for.
    Attached Files Attached Files

  5. #5
    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,523

    Re: Using VLOOKUP with an IF statement, is this right?

    Another version using SUMPRODUCT

    =SUMPRODUCT((Table1[Quantity sold])*(Table1[Store]=$A2)*(Table1[Department]=LEFT($B$1,7)))

    Changed heading to "Books" rather than "Book"

    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-02-2015
    Location
    US
    MS-Off Ver
    2013
    Posts
    4

    Re: Using VLOOKUP with an IF statement, is this right?

    Unfortunately the headings have to be different because of the requested dashboard. It seems like these two versions would work but it would take about the same amount of time as referencing a cell on another sheet. It's possible that I'm such a beginner that I don't completely understand the formulas enough to recreate them. Thanks for your help!

+ 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] Vlookup With IF Statement
    By Rick K in forum Excel General
    Replies: 9
    Last Post: 09-25-2014, 09:51 AM
  2. vLookup within an IF statement help
    By n1085570 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 08:54 AM
  3. [SOLVED] vlookup or if statement
    By babyblue998 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2012, 03:26 PM
  4. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  5. Using a VLOOKUP and IF statement inside an IF statement
    By Isis3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2011, 07:04 PM
  6. IF statement with VLOOKUP
    By QuestMatt in forum Excel General
    Replies: 1
    Last Post: 11-05-2008, 05:23 PM
  7. VLOOKUP with IF statement
    By Kay in forum Excel General
    Replies: 4
    Last Post: 08-17-2005, 10:04 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