+ Reply to Thread
Results 1 to 2 of 2

SUMIF and VLOOKUPS Combined May be the Answer?

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    1

    SUMIF and VLOOKUPS Combined May be the Answer?

    Hello, I was wondering if anyone would be able to help me with an Excel problem I am having.

    I have a large Excel workbook which contains around 40-50 seperate spreadsheets, each of the spreadsheets holding information about a different project, I also have a front sheet which rolls up all the basic project information. However what I am trying to do now is a little bit more complicated.

    I have created a Spreadsheet entitled Budget Codes which contains all the different budget codes which could be used to purchase something against an order for a project. In this spreadsheet I have 'Budget Code' 'Amount Allocated' 'Amount Spent' and 'Amount Remaining'. What I want a formula to do, is to look into the order lines of ALL the other project sheets, identify where a particular budget code is used, and where it matches the code in the respective cell to add the value of that order, thus totalling all the orders placed against that project code...where there may be multiple order lines, if this makes sense.

    If it doesnt (because I am not great at explaining), I need a formula to look up where the budget code in one cell matches the budget code in multiple other cells and then know to look at the value/amount on the same line as the project code and them all up together. I am thinking that SUMIF and VLOOKUP may be able to help me but at the moment I feel like I am banging my head against a brick wall.

    If anyone is able to help I would be exceptionally grateful.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,634

    Re: SUMIF and VLOOKUPS Combined May be the Answer?

    See the attached example.

    In some senses, it's not very sophisticated, but it will work.

    You would need to put a list of the budget codes in the same place on each sheet and, next to it, a SUMIF for that code.

    Then, before the first sheet, put a sheet called Start with nothing in it and, after the last sheet, a sheet called End (with nothing in it).

    You can then use =SUM(Start:End!F2) for example

    OK, that sounds tedious, particularly if you change the budget codes. However, it's not that difficult because you can group the sheets and put the codes and formulae into all the sheets at the same time.


    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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