+ Reply to Thread
Results 1 to 16 of 16

Revenue/Income Summary

  1. #1
    Registered User
    Join Date
    01-26-2007
    Posts
    9

    Lightbulb Revenue/Income Summary

    I own a local restaurant and want to streamline my excel spreadsheets. Currently, I have yearly workbooks (2005, 2006, 2007, etc.) that have all of my revenues included in them, split up monthly by worksheets. I then have lines for each day within the month for the revenues earned at that day.

    So, if I want to find how much revenue I earned on March 1st, 2006, I go to my 2006 book, March worksheet, and look at the 1st. Here's where my problem lies.

    I want to create a new spreadsheet where all I have to do is type in a certain date (say March 1st, 2006) and all of the information for the date will be automatically displayed on the new sheet.

    My goal is to make a spreadsheet where I can put in a date, two, or three and get some summary information!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Revenue/Income Summary Help!

    Without knowing your data structure, we probably can only suggest generic approaches.

    However, since you have a need to calculate values for ranges of dates from specific months, I'd suggest transforming your data this way (if you can).

    Put ALL of the months in one sheet with appropriate column headings. Start with January and append the subsequent months below. Once that is done, you have the equivalent of a data table that you can use as the basis for lookup functions, queries, and pivot tables....Plus you'd then be able to calculate values for multiple months, weeks, month-to-month comparisons, etc.

    I hope that helps.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    Ok, is there anyway that I can use a lookup function within a workbook to find a specific worksheet. It works best for me, for simplicity, to keep the months seperate in different sheets (it makes it almost dumb proof for my other employees that may enter data).

    Is there anyway to create something (macro, etc.) that could pull the value of cell A1 from sheet 1 from book1 when I enter a specific value in A1 from book2, and then when I enter a different value in A1 in book2, would get the value from A1 from sheet 2 from book1?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's another approach

    Making a Summary workbook

    Open your summary workbook and your 2005 workbook. Now what data do you need? For now you just need information from the March worksheet in the 2005 workbook.

    Go to the March worksheet and pick a cell with the title say.

    Go to your Summary worksheet, select a cell, press = and then click in the title cell of your March worksheet and press Enter.

    You should now have the title in your summary worksheet and a formula something like

    =[March.xls]!$A$1

    Your can repeat this for what ever information you require on your Summary workbook sheet. Any information in your yearly workbooks that are linked to these cells will be updated if the information changes in the yearly workbooks.

    Close your March workbook.

    Now you have your summary information, but you would like to “drill” down to see the detail.

    The way to get this to work is to go to Tools > Options > Edit and uncheck "Edit directly in cell".

    When you double-click one of your linked cells in your Summary workbook that references a cell in another sheet or another file, it opens that file and you have all the information at hand.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    I appreciate the help...

    Would there be anyway (this is really want I want) to put a certain date into cell a1 in a workbook, and have that pull information from where the data is actually located?

    Again, I appreciate the help.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Revenue/Income Summary

    Give us as much information as you can about how you want to use the data from the source workbook.

    Will you want to calculate ranges of dates? or data from specific dates?
    What volume of information will you be pulling from that workbook? If it's only a few dozen cells, then a formula approach will probably be acceptable. But, if it's thousands of cells, the kinds of formulas you'd need could result in an intolerably sluggish workbook where a pivot table or vba driven solution would be quicker.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If you have a date on your March spreadsheet, link that to your Summary worksheet, then when you double-click on that date it will open the file.

  8. #8
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    I currently have 3 years of data in workbooks titled 2005, 2006, and 2007. The data within the books are split up into 12 worksheets (jan., feb., march, etc.). Each worksheet contains around 30 lines (for each date) and about 10 columns of information (Date, lunch sales, dinner sales, total sales, per person average, etc.). It's a relatively noncomplex sheet.

    In the summary sheet, I want to put in a date (March 1, 2006) and have that sheet automatically pull the entire row from the same date in the referenced workbook, or just a cell (total sales).

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Revenue/Income Summary

    OK....I think I have enough information to give you some ideas.....

    You don't have much volume of data for any given month, so here's a thought:

    Hopefully, each month has the same structure of column headings with dates from 1 through the last day of the month listed in sequential order and all beginning in the same cell of each worksheet.

    Open both workbooks: Summary and 2006.

    1) Using the Summary Workbook:
    2) Copy the column headings from one of the 2006 source sheets into the summary sheet....starting in cell A1

    3) Select cell A2
    4) Type =......then select cell A2 of the January sheet in the source book....an press [ENTER]
    That will create a formula like:
    =[2006_Sales.xls]January!$A$2

    5) Change the absolute references to relative references by removing the dollar signs:
    =[2005_Sales.xls]January!A2

    6) Copy that formula across to the right and down 31 rows.

    That should result in a formula driven "copy" of the January sheet of the source workbook.

    7) If you want to see the March data....
    From the Excel Main Menu:
    <edit><replace>
    Find what: January
    Replace with: March
    Click the [Replace All] button

    Note: you may need to click the [Options] button and
    set Look In to "Formulas"

    Now, all of the formulas reference March

    If you want to reference the 2005 workbook....
    Find what: 2006
    Replace with: 2005
    Click the [Replace All] button

    Is that something you can work with?

    If yes....then maybe you'd be interested in using some simple macros to make some of that easier.

  10. #10
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    Yes, this would be something I would be interested in. Basically, I would allow me to pull up whichever month/year that I want to look at, instead of having to sort through my other workbooks/sheets.

    Is there anyway that I can add a specific date to this? Something that I do on a daily basis is compare sales for today vs. a year ago from today vs 2 years ago from today. And sales from yesterday vs. a year ago yesterday, etc.

    This is why I just want to be able to put in a certain date, March 31, 2007, get all the information that I want from that date, and also be able to put in, March 31, 2006, to compare the data.

    Thanks

  11. #11
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Revenue/Income Summary

    I think I have something you can work with.

    I attached a zip file containing 3 files:
    2005_Sales.xls......contains dummy data for Jan and Feb of 2005
    2006_Sales.xls......contains dummy data for Jan and Feb of 2006
    Summary.xls

    1) Extract all 3 files to the SAME folder on your computer.
    2) Open all 3 files
    3) Select the Summary.xls workbook

    Sheet1 of that workbook has a simple demo.
    You enter the Year, Month, and Day for the data you want to see and the
    formulas to the right of those inputs will read that data from the appropriate
    workbook and worksheet
    .....BUT, here's the minor catch:
    The referenced workbook needs to be OPEN.

    So, if you enter 2005,2,1 in the first three input cells
    and 2005,1,1 in the second three input cells....
    the formulas will compare 01-FEB-2005 to 01-JAN-2005.


    Is that an approach you'd be interested in?
    Attached Files Attached Files
    Last edited by Ron Coderre; 11-21-2007 at 11:46 AM.

  12. #12
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    Ok, I think I'm figuring out more what I want. Currently on my summary page I'm using the VLookup function to find the data within my specific sheet where I'm looking. So, if i want to find 1/1/07 in my jan sheet where I have my data column values as 1/1/07, 1/2/07, etc. It's working great.

    Is there anyway that I can use the VLookup function specifically the table array, to search more than one work sheet? Currently it puts the table for sheet1+sheet2 and it's not working how I want it to. Is there anyway that I can do this? Thanks.

  13. #13
    Registered User
    Join Date
    01-26-2007
    Posts
    9
    Ron, all I can say is thanks! That's almost exactly what I want. Now, I'll be able to use the formulas and stuff to tweak it to my exact liking, but it's perfect. I appreciate the help and the time. I've used excelforum in the past and have truly enjoyed all of the insight and help. Thanks again!

  14. #14
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    You're welcome

    Thanks so much for letting us know we helped!

  15. #15
    Registered User
    Join Date
    01-26-2007
    Posts
    9

    More help please, hopefully this will be quick.

    I have the formula working perfectly for what I want

    (=VLOOKUP(DATE($A6,$B6,$C6),INDIRECT("'["&$A6&"_lknsales.xls]"&TEXT(DATE($A6,$B6,$C6),"mmm")&"'!$B$1:$R$50"),COLUMNS($D:D),0))

    using the sample data formula with a few minor tweaking. the only thing i want to do now, is automatically get the info from the date 364 days prior.

    example, with the current formula, i can put in 10/10/2007 and get that data, I want to have the data from 10/11/2006 (the corresponding saturday since date to date isn't a fair representation, and a day to day is... sat to sat, sun to sun....compared to monday to sunday, etc.) how can I change that formula to automatically use the corresponding day in the previous year?

    Thanks

  16. #16
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Revenue/Income Summary

    I suspect there will be some kind of flaw in whatever method you use to calculate the same weekday of the previous year.

    I went with this one, which is based on the WeekNum of the target date:
    Please Login or Register  to view this content.
    NOTE: You'll need the Analysis ToolPak add-in engaged for the WEEKNUM function to be available.

    Does that help?

+ 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