+ Reply to Thread
Results 1 to 9 of 9

Couple of quick questions - VLOOKUP maybe?

  1. #1
    Registered User
    Join Date
    06-03-2008
    Posts
    5

    Couple of quick questions - VLOOKUP maybe?

    I have a sales data worksheet with lets say 3 columns. The first column is the sales persons region in numerical format, second is their name and third (and onwards) is the data.

    I then have an output sheet, in which I want to be able to setup to show salespersons name, and relevant data, based on an input of their region in say cell A1, i.e. so when 1 is input in cell A1 it will return all the salespersons names and data in this region, when 2 is input it shows all the salespersons names and data in this region.

    Now an autofilter will work, but its messy. I want to use a VLOOKUP (=IF(VLOOKUP($A$1,Data,1,FALSE)=$A$1,VLOOKUP($A$1,Data,3,FALSE),""))but it will only return the first salesperson in each region, so at the moment it looks like the following
    A1 = 1
    Name 1 $XXX
    Name 1 $XXX
    Name 1 $XXX

    I want it to appear as
    Name 1 $XXX
    Name 2 $XXX
    Name 3 $XXX

    How do I get around this?

    While I’m here asking questions, I may as well throw another one at you guys.

    Say I have a data sheet for each month, in columns I have the salespersons name, and in rows I have relevant sales data. I want to consolidate these sheets, into one, so in the columns I will have salespersons name – relevant data, and in the rows the month, so all data can be on one sheet. Is there any way to do this?

  2. #2
    Registered User
    Join Date
    06-03-2008
    Posts
    5
    Heres a basic sample, I'm also getting #N/A in row B now, I'm not sure why!!!! Thanks.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Quote Originally Posted by Bakks
    ......................

    I want it to appear as
    Name 1 $XXX
    Name 2 $XXX
    Name 3 $XXX

    How do I get around this?
    Sound like you need a sumif formula

    Quote Originally Posted by Bakks
    ......................
    While I’m here asking questions, I may as well throw another one at you guys.

    Say I have a data sheet for each month, in columns I have the salespersons name, and in rows I have relevant sales data. I want to consolidate these sheets, into one, so in the columns I will have salespersons name – relevant data, and in the rows the month, so all data can be on one sheet. Is there any way to do this?
    sumif formula

    Post a small example if further hwlp is needed

    Cheers
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  4. #4
    Registered User
    Join Date
    06-03-2008
    Posts
    5
    I don't want to sum any data though.... Small example attached above.

  5. #5
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Hi,

    You need to correct the vlookup formula to work

    Go to the "Output" sheet and copy the code int0 cell G3

    Please Login or Register  to view this content.
    Then copy drag down

    Hope that helps

  6. #6
    Registered User
    Join Date
    06-03-2008
    Posts
    5
    Cheers, still doesn't help solve my issue of how to stop the recurring data when using the VLOOKUP in column A of the output sheet! Any ideas?

  7. #7
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Have you considered doing a pivot table from your data?
    It will give you a lot of flexibility of analysis. Good thing is that once you insert more data, it will be updated automatically once you refresh the pivot.

    You can also add those month columns to the pivot, having the monthly info as you want.

    I inserted a update button.

    See attached
    Attached Files Attached Files
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  8. #8
    Registered User
    Join Date
    06-03-2008
    Posts
    5
    Well that seems to work doesn't it! I'm not all that familiar with Pivot Tables but will have to look into it I think. Appreciate your help

  9. #9
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    With pivot tables, you actually wont need a tab for each month. You can have all the data in just one tab, working as a minidatabase. There you can use the month formula =month(a1) for example and add that column in the pivot also.

+ 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. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  2. a couple of questions
    By moshmoshon in forum Excel General
    Replies: 2
    Last Post: 08-31-2007, 05:31 PM
  3. Vlookup Questions
    By lardy999 in forum Excel General
    Replies: 1
    Last Post: 04-30-2007, 09:07 AM
  4. Couple of Excel Questions...
    By acerun007 in forum Excel General
    Replies: 3
    Last Post: 02-18-2007, 02:54 AM
  5. VLOOKUP questions
    By batyrjan in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-16-2006, 06:19 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