+ Reply to Thread
Results 1 to 5 of 5

Complicated Logical Formula issue

  1. #1
    Registered User
    Join Date
    05-04-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Complicated Logical Formula issue

    Hey all, hopefully you guys can help me out!

    I run a small business with 8 employees who work at 6 various sites around the city. Their revenue is entered into an online database, but I also keep a copy in Excel (2007) for my own purposes. Here is an explanation of the spreadsheet.

    First worksheet: A summary of all the data, such as totals, costs etc.

    2nd worksheet: Inventory orders

    3-8th worksheets: Record revenue for each of the 6 sites

    Here is my issue.
    My guys all move around site to site, so in each of those 3-8th worksheets I have recorded their name beside the revenue earned that day. Their names are recorded in cells B4:B217, revenue breakdown is recorded in Cells C-G4:217, and total revenue is in cell H4:H217.

    On my summary sheet, I wish to use a function to search through those 6 workbooks for each employees name, and pull the revenue they earned that day into a single cell that totals it all.

    I have successfully made a function that works for each cell, but doing that one function for 6*217 cells per employee seems a bit excessive.

    Any ideas? Help would be greatly appreciated!
    Last edited by Landtuber; 05-04-2010 at 11:38 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Complicated Logical Formula issue

    If you make a list of the sheetnames (i.e. the sites) and name that range Sites (through Insert|Name|Define), then use something like this:

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sites&"'!B4:B217"),A2,INDIRECT("'"&Sites&"'!H4:H217")))

    where A2 contains name to look for in B4:B217 of each sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Complicated Logical Formula issue

    Take advantage of the SUMIF(), SUMIFS() formulas. You will be able to total based on names and columns will be preserved if done correctly.

    You will likely have to create 1 formula with 6 SumIF/S() functions, but then it should be scalable accross you data set.

    Edit: NBVC probably has a better model

  4. #4
    Registered User
    Join Date
    05-04-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Complicated Logical Formula issue

    Much obliged NBVC, this worked perfectly! Thank you very much!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complicated Logical Formula issue

    Landtuber, pleas read the forum rules about thread titles before posting again.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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