Without using Macros - Generate a Monthly Report Based on Month and Employee

andrewbhilty

New Member
Joined
Nov 23, 2016
Messages
8
I have been trying to fix a clunky time wasting report process we have so that Excel does all the time wasting work for me, and all I have to do is select an employee and a month and press print. Here's what I'm working with so far:

There is a master quote log that multiple employees have access and add information to. In that sheet, we keep track of the person who input the quote, the date the quote was entered, and a variety of information that varies from quote to quote.

On a separate sheet in the same workbook, I'm trying to set-up what we report once monthly. What I would like the spreadsheet to do, without using Macros, is allow the user to select an employee from a drop down and the month from a drop down. It will then fill in the table with the seclect columns that we report (I can edit the column headers if they have to match exactly from sheet to sheet).

Is there anyway to do this without using Macros with an If statement and vlookup? If been playing with it for a while with no luck. Trying to say something like ifs Sales Rep = "Fox, Month = "November", Report "Columns A, B, C, D, F, H, L,...

Hopefully that will make sense when you see the spreadsheet examples below:

Here are examples of the two sheets - first one is the Master Quote Log. Second one is the Report.

Master Quote Log
Quote StatusQuote DateQuote #Project NameCustomer NameSales RepQuoted Price ($)Sq. Ft.UnitHours
SOLD01/12/1616.1424bProject 1abcDoe$1,265,456128,255628322
QUOTED01/16/1616.2114aProject 2defFox$56,0005,5002441
DEAD02/16/1616.1016aProject 3ghiDeere$58,0005,2002718
DEAD04/05/1616.2118aProject 4jklFox$110,00015,0005440

<tbody>
</tbody>



Report: .Only Items edited are Sales Rep (drop down list) and Month (drop down list). I want everything else to pull from the Master Quote Log.
2017 Sales Representative Quote Activity Report
Sales Rep:FoxTerritories:Indiana, Ohio, MichiganMonth:November
_______
ActivityDateQuote #Project NameCustomer NameUnitQuote Price
Quote11/8/1616.2114aProject 2def24$56,000
Sale11/12/1616.2118aProject 3jkl27$58,000

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
This can be done with filters.


  1. Click a header that you want to fileter by, like the date on A2.
  2. Click DATA > Filter. (Now you should see little drop down arrows on each column.)
  3. Click the arrow on Quote Date and select "Date Filters"
  4. Select a filter that you want like "Last Month"
  5. Now click the arrow on the Name Field
  6. Deselect "(Select All)"
  7. Click the checkmark next to a name

Now you have accomplished your goal with zero programming using the features built in to Excel!
 
Upvote 0
To get the closest without any macro, you'll be using PivotTables. For the Date Selection you can use Group by Year and Month or use the Time Line feature set to show months. (You still have the regular drop-down filter options too.)

There are some array formula methods I believe Mike Girvin has demonstrated that could get a closer match to what you have mapped, but I don't like the way you would have to fill down an undetermined amount of rows as it can create issues for printing or other statistical analysis.
 
Upvote 0
This can be done with filters.


  1. Click a header that you want to fileter by, like the date on A2.
  2. Click DATA > Filter. (Now you should see little drop down arrows on each column.)
  3. Click the arrow on Quote Date and select "Date Filters"
  4. Select a filter that you want like "Last Month"
  5. Now click the arrow on the Name Field
  6. Deselect "(Select All)"
  7. Click the checkmark next to a name

Now you have accomplished your goal with zero programming using the features built in to Excel!

The Master Quote Log has roughly 25 columns of information. We only report 8 of those columns, but the columns reported are not right next to each other. The Report is in a different sheet of the same workbook. Filtering will not work in this case.

I appreciate the input though.
 
Upvote 0
To get the closest without any macro, you'll be using PivotTables. For the Date Selection you can use Group by Year and Month or use the Time Line feature set to show months. (You still have the regular drop-down filter options too.)

There are some array formula methods I believe Mike Girvin has demonstrated that could get a closer match to what you have mapped, but I don't like the way you would have to fill down an undetermined amount of rows as it can create issues for printing or other statistical analysis.

I'm not familiar with Pivot Tables... If that's what it takes, I'll definitely look into it.

As for the undetermined amount of rows, there are typically between 20-40 quotes per month, and always fit on a single page when printing. The Master Quote Log has a determined amount of rows, although the amount is somewhat large (600). I'll look up Mike Girvin and see if I can apply anything.

I feel like there has to be a way to do this with an =ifs() statement and vlookup somehow. I could be wrong, just seems like something it could do.
 
Upvote 0
The Master Quote Log has roughly 25 columns of information. We only report 8 of those columns, but the columns reported are not right next to each other. The Report is in a different sheet of the same workbook. Filtering will not work in this case.

This second sheet can just be pointers to the first sheet. That way you can put any data selection in any order and then filter it.
 
Upvote 0
Yeah, type equals sign in a cell. Now click a different cell to make a pointer. The values are linked uni-directionally. The reference is relative so Excel can auto-fill and intelligently hand copy\paste. Just make them by column in the order you want. It's super quick.

More information about the fill handle:
https://support.office.com/en-us/ar...et-cells-74e31bdd-d993-45da-aa82-35a236c5b5db

Well, never had heard that called pointers, but that will not exactly work. The Report page that is set up has a specified number of rows for the items to fill in. Then below that specified number of rows is a summary of information. If I were to use pointers for all of the information on the Master Quote Log and then filter, I would have to reformat the Report Page to print for each employee, for each month, which doesn't save me much time.

As I said, no employee does more than 30-35 quotes a month on our busiest months, so the format of the page will work as set-up, if we could figure this out. The format of the Report page is set with the specified number of rows and columns in order to print on a single page and provide all the information we need to review.

See below Full Report Page:

2017 Sales Representative Quote Activity Report
Sales Rep:FoxTerritories:Indiana, Ohio, MichiganMonth:November
Quote StatusDateQuote #Project NameCustomer NameUnitsQuote Price
Row 1
Row 2
...
...
Row 39
Row 40
# of Quotes in November$ Quoted in November# Units in November$ / Unit in November
0$00.0$0
YTD TotalYTD $ TotalYTD Total UnitsYTD Average $ / Unit
# of Quotes$ Quoted
0$00.0$0

<tbody>
</tbody>

I tried messing with the PivotTable feature, and either I don't know how to use it very well (which is likely), or it's not quite what I need. Perhaps there is no way to do this without Macros, but I really expected vlookup to work.
 
Upvote 0
This should help see a formula method for getting your results https://www.youtube.com/watch?v=9jmNEqrfrZs&list=PL63A7644FE57C97F4
What I don't like is the need to build/rebuild your list for the drop-down filters.

Pivot Tables. Start at this playlist https://www.youtube.com/playlist?list=PLDF4390866B480CD2
While Mike has excellent in Depth videos, the book to use is Bill Jelen's as well as Bill's full Excel book Excel 213 in Depth
Versions for 2016 should be near publishing. Available through Barnes&Noble and the MicrosoftPress Store too.

If you are not familiar with PivotTables yet, you may not be ready for Get&Transform (formerly Power Query) but that can also provide a solution too. Mike has a series on those techniques that you may not want to try just yet , but I do suggest that you watch some info on the topic for the future.

This video Excel Magic trick 1337 is neat since it shows all three methods (though in just simple terms.)
 
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top