+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP help

  1. #1
    Registered User
    Join Date
    11-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    VLOOKUP help

    Hey,

    I have 2 spreadsheet files, one contains campaigns and keywords columns, the other contains campaigns, keywords, orders and revenue columns.

    I need to extract the orders and revenue data from the second sheet for each keyword matched up with the data on the first sheet.

    However, some identical keywords are included in more than one campaign so I need to make sure that the keyword sales data is only matched up if it is in the same campaign.

    How can you use a VLOOKUP to say "if the keyword in the first sheet is in campaign X, and the keyword in the second sheet is the same, and also in campaign X, then return the order value column, otherwise return 0."

    Any help would be much appreciated,

    John
    Last edited by john222; 11-21-2010 at 08:48 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VLOOKUP help

    A sample would be beneficial in getting an answer.
    Last edited by davesexcel; 11-20-2010 at 01:01 PM.

  3. #3
    Registered User
    Join Date
    11-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP help

    Quote Originally Posted by davesexcel View Post
    A sample would be beneficial, in getting an answer.
    Hi thanks,

    Here's a sample of the data (the actual sheets contain thousands of entries each)
    Last edited by john222; 11-22-2010 at 06:47 AM.

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: VLOOKUP help

    John - can you post your speadsheet. You would get an answer alot quicker and make it easier for potential helpers.

    cheers
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  5. #5
    Registered User
    Join Date
    11-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP help

    Quote Originally Posted by Blake 7 View Post
    John - can you post your speadsheet. You would get an answer alot quicker and make it easier for potential helpers.

    cheers

    Thanks very much,

    John
    Last edited by john222; 11-22-2010 at 06:47 AM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP help

    not sure how this is supposed to work column a of 1b doesnt contain all the words in column a of 1a
    its perfectly possible to match on 2 criteria against two columns if you want
    Last edited by martindwilson; 11-20-2010 at 09:04 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    11-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP help

    Quote Originally Posted by martindwilson View Post
    not sure how this is supposed to work column a of 1b doesnt contain all the words in column a of 1a
    its perfectly possible to match on 2 criteria against two columns if you want
    Is there a way to have a formula to match on 2 criteria against 2 columns and only return the sales volume if both of the criteria is met (i.e. if the keyword AND campaign are the same) - that would be perfect.

    Cheers

  8. #8
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: VLOOKUP help

    Hi John - not sure if this will do what you want....... see attachment

    =SUMIF(A!$B$2:$B$26,B!C2,A!$C$2:$C$26)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VLOOKUP help

    Quote Originally Posted by Blake 7 View Post
    Hi John - not sure if this will do what you want....... see attachment

    =SUMIF(A!$B$2:$B$26,B!C2,A!$C$2:$C$26)
    Thanks for that - it looks nearly there. However, I am having a problem with the highlighted in yellow fields. For instance the petite dresses keyword shouldn't pull through any sales data as it is in a different campaign to the petite dresses keyword in the other sheet.

    Cheers

    John

  10. #10
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: VLOOKUP help

    Ahhhh - sorry. I missed you post which said.......

    Is there a way to have a formula to match on 2 criteria against 2 columns and only return the sales volume if both of the criteria is met (i.e. if the keyword AND campaign are the same) - that would be perfect.

    My soultion does not match against multiple criteria, ie Campaign and Keyword. This is possible to do but I think we may need a SUMPRODUCT function or SUMIF with an IF. I'm no expert but will try to help. In the mean time google SUMIF with multiple criteria. Don't worry you will get there. This site is great for help.

    Someone better than me will jump in when we get stuck!!

    Let me have a quick look into this..........

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP help

    sumproduct will prob do it but i couldn't see what the criteria were!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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