+ Reply to Thread
Results 1 to 7 of 7

Vlookup.. Or SUMIF's?

  1. #1
    Registered User
    Join Date
    10-31-2014
    Location
    Northampton, England
    MS-Off Ver
    2007
    Posts
    3

    Vlookup.. Or SUMIF's?

    Hi,

    I have a excel spreadsheet that we use for wages, it has a front tab with the names listed in Column A and the sites in Row 1. Not every person works on every site so someone might work on 1 site out of 8.

    My question is I am trying to put on the back of these individual sheets but I want it to look up the persons name and list the sites they have worked at - I can then SUMIFS the site names and person to get the values. I've attached a mock up version of what I'm trying to do - it's very basic but I am trying to learn.

    I'm not sure what formula to use.

    Many thanks

    Carrie
    Attached Files Attached Files
    Last edited by carrieuk; 11-03-2014 at 06:08 AM. Reason: Title wrong

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Not quite sure how to do this

    Edit: Thanks for changing the title
    Last edited by Olly; 11-03-2014 at 06:16 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Not quite sure how to do this

    You could use a Pivot Table for this. Have a look.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-31-2014
    Location
    Northampton, England
    MS-Off Ver
    2007
    Posts
    3

    Re: Vlookup.. Or SUMIF's?

    Hmm.. I'm not sure that will work as on the second tab in Column A i need to be able to put in the sites that e.g JR has worked at only and leave any blanks out. I can then SUM the amounts. Is this possible with a formula or will it need a macro? Maybe I'm looking at this wrong?

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Vlookup.. Or SUMIF's?

    HI, Ref the attachment, array formulas used, you have to give ctrl+shift+enter not just enter
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Vlookup.. Or SUMIF's?

    As your second sheet has no data in it, it is difficult to see where the data would come from. Please attach another sample file with made-up data on the second (and a third) sheet, and show how the first sheet is to be derived from it.

    Pete

  7. #7
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Vlookup.. Or SUMIF's?

    Perhaps you can use the data provided by the Pivot Table? I only suggest Pivot Table because in a list like this it can filter data and sum values quickly without formulas. It can also be updated with a simple click, if the data in your original list changes.

+ 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