Aging Report ...
I am trying to customize an aging report, column will be 30, 60, 90 120 + I would like the amount to show under each column. The charge amount for $252.38 each day.
View Complete Thread with Replies
Related Forum Messages:
Creating An Aging Report
I'm trying to create an Accounts Receivable "aging report", using Excel
2003. I've got a field (a date field), that provides the date of invoice.
I'd like then to add 30, 60, or 90 days from that date, and call that the
"Due Date" for payment in another column.
I have attached a spreadsheet that shows a summary of an account to date. I want to put in formulas to continue as new charges and payments occur. I hope the upload worked!!
I'm trying to create an aging accounts table from transaction data. I am tracking loans. Here's the layout of the data that I have. Positive entries mean that a new loan was taken out. Negative entries mean that a loan payment was made.: ...
Aging Inventory Buckets
I need a formula that will help determine what "bucket" (based on today's date & due date) a date would fall under. I have 5 buckets:
I am using the following formula:
=IF(D2="","N/A",IF(TODAY()-D2-26,TODAY()-D2-12,TODAY()-D2-5,TODAY()-D20,"31 + days"))))))
This formula works fine, however the next day I run the report the formula has to be slightly modified to place everything in the correct aging "bucket". Is there a formula that would alleviate the need to update the formula everytime I would like to check the inventory?
The dates are actually based on a weekly (Sunday through Saturday) schedule. So if the Due date is Prior to today's date it would fall into the 31+ category. If due up to 14 days (including today) it would fall under the 0-14 Day "bucket". And so on...
Count Aging Records
I run a work order report on a daily and weekly basis and I am looking for a formula that will find all dates in L:L that are greater than 9 days old. I can't seem to work out the syntax. The cells in L:L are formatted as DATE and TYPE *3/14/2001
Copy Data From Weekly Report To Monthly Report
How do you create a macro to copy the information from my weekly reports to a monthly report and be able to update automatically. If you had 4 worksheets (for each week of the month) and 1 mastersheet for the whole month in a workbook. All titles are the same and If you needed to copy all the data that is in the columns, say, A through I, starting with row 4 to however many rows are in a given week. The reports can be made up of numicerial values, text and dates. Let me know if more information is needed or an example worksheet.
Conditionally Calculate Aging Using Oldest Date
I looking to track the oldest entry that is still marked "Open" or "In progress".
So far I have done the below If Statement:- =IF(H24="Open",E24,IF(H24="In progress",E24,"")). This returns the Date it was logged if the status is "Open" or "In progress". to column T, So far so good!
So in cell T22 i wanted excel to show me the oldest date so i used the MIN function like so:- =MIN(T24:T40). This returned me the oldest date which i then wanted to know how many days this has been open for so i used:- = SUM(TODAY()-H6)
which gives me the number of days. This all works fine until..........i don't have any entries set to "Open" or "In progress" or any dates added (e.g. start of a new week). When this is the case the MIN function returns a value of 01/01/04 which in turn tells me that the oldest entry is 38,604 days old. I have tried different combinations of If statements to ignore the blanks / date etc but i just can't make it return zero or even better blank. I have attached a sample of my sheet and inserted comments to explain what each part does
I am working in SAP, I am attempting to convert a report in excel and I'm get the following error codes/debugger messages:
1ST Error Message is : Path/File access error: 'VBD1.tmp'
Then I press okay and get a Visual Basic Error:
Run Time Error '1004'
Methon 'Copy' of object'_Worksheet' failed
If I press debug I get a bunch of Visual Basic sheet, with the following highlighted
Set ws = SAPSheets.item(SheetIndex)
So this is the problem, there are 65 files that are stored in a folder, each file has 8 tabs, all these tabs within each file are identical in every aspect ( i.e cell ranges and names). The max number of rows in a tab is 81. To break it down:
Tab 1 : Instructions (this will never change and will always be constant among all 65 files)
Tab 2: Row 1 will be the same for all files, rows 2-9 i don't need, except for the info on cell C3 which I need to be copied through S11:S33. S10 needs to equal A3 with the format of R10. And then just have the next files tab info below this table with the same logic being followed.
Tab 3: Same logic as tab 2 but now the range is from S11:S53.
Tab4: Same logic, just copy and paste tables for all files, and doing the same thing with column S hat was done in tab 2 in order to be able to filter tha data.
Tab 5: Same logic, with H1 being filled by the descriptor on Tab2( This will enable one to filter though the information since the descriptor in cell 3 from tab 2 is the short name given to each files which differentiates the data.
Tab 6; Same logic
Tab7: Same logic, but would like a drop down box on right to filter by service centers.
Tab 8: Same logic, but would like to have drop down on rigt in which I can select the given short name ( i.e cell 3 from tab 2 of each file)
This way I can have one master file which encompasses all the information from all 65 files in one file and be able to sort through the data in each tab by the short name description. I need a macro for this since these files get updated in a weekly basis.
Any help on writting such a code would be greatly appreciated, my excel VBA skills are non existent!. I have attached the template of how one of these files looks like. There all the same except with different names of course and all are stored in one folder.
Generate Report With %
Analysis of Profit is very impt in business , that is why i keep trying to find way to use excel to generate profit report.
I have been trying to solve this for last one month. even when i bath... But no result.
May i ask any one here know how to convert my data to a report using . Below table said every thing.
Project (10) HIJ1My Raw Data File 2BrandMonthProfit In %3Brand AJan 0730%4Brand BFeb 0750%5Brand AJan 0730%6Brand BFeb 0750%7 8 9I Need Report In New Work Sheet 10 11BrandJan 07Feb 0712Brand A30%30%13Brand B50%50% Excel tables to the web >> Excel Jeanie HTML 4
Create Per Day Report
I've three columns excelsheet and want to create Per day report.
I want to count per day records and status.
This will be self-explanatory when you check this screenshot
Report The Max Number And The Min
I have a coulmn with results in that are in a decimal point example .01, .02.
At the bottom of the coulumn I want to report the max number and the min
number but it does not. Also in one column my results are listed as <0.05
etc. At the bottom of this column I want to report the max and min but it
does not. I believe because they are not whole numbers. Is there a way to
report these numbers. I tried an IF formula where if <0, max(i12:i36) but
that did not work.
VBA Report With Forms
sometimes pivot tables won't give me the details I want the way I want. any time my boss asks me for a monthly report I have to do everything manually from the pivot table and insert the data on another table where I put the filteres data. I want to be able to get a monthly sales report per store that will populate itself in a daily basis, I also want to be able to select a store, style, size and date from a form in Excel and see the report in a sheet. Aproblem that I have found in order to use the size as a parameter is that the size comes in the same line as the item description and do not know how to make excel to check just for the size in the description field.
The attached file contains sales data for a better understanding of my case.
To Write A VBA Report
i have accumulated a lot of data on an excel sheet now i need to be able to run 2 reports that will spit out the data in a specific way but i have no clue but i have made a word document to show how i would like it to spit out
Report Not Working
Just to fill you in on what I am doing, I am am putting a report macro in my spreadsheet that looks to see if a value meets the criteria if it does then it will copy a selection of cells data from that sheet into a new sheet. It will do this for all the sheets so in theory I should end up with a simmilar kind of report function to access. The problem is to when I do this the data does not appear, I do not know why.
Private Sub cmdPoor_Click()
Dim sheet As Worksheet
For Each sheet In Worksheets
If Not sheet.Name = "Main" Then
If Not sheet.Name = "Template" Then
If Not sheet.Name = "Help" Then
If Range("L44").Value = Poor Then
Dim strName As String
Dim strSurname As String
strName = Range("L41").Value
strSurname = Range("L42").Value...................
Making A Report
1- I 'm working with a table wit many Sheets.
I want to make a Report Sheet with selective ranges(cells)
the selective cells should paste as link ( in order to be updated cells)
2- then how to Zip this worksheet to zip file ( to save it)
3- If I have a Macro and i want to perform this macro to all sheet except one sheet how to that ?
Best Way To Create A Report
As it is now I use several loops to scan one sheet to collect the data and paste it onto a second sheet. The first sheet has several rows of data, denoted by one of four colors, that I have to collect and put into a report grouped by color. Each color represents the current status of a part of a project. The while loops stop on no data in column one. So each loop runs down the sheet, looks at the data row color and rejects it if it is not the right color for that section of the report. I am sure there is a better way to do this. I was thinking maybe create a temporary data base, collect the data adding fields for the current status then use a sql for each section of the report and insert rows as required.
While Worksheets("All Work"). Cells(iGetRow, 1).Value <> Empty
Set Cell1 = Cells(iGetRow, iGetCol)
Set Cell2 = Cells(iGetRow, iGetCol + 4)
Set rCurrent = Range(Cell1, Cell2)
If rCurrent.Interior.Color = Purple Then 'Purple is a constant
Worksheets("Report").Paste Destination:=Worksheets("Report").Cells(iPutRow, 1)
iPutRow = iPutRow + 1
iGetRow = iGetRow + 1
Employee's Project Report
I have created a spreadsheet in Excel where it gives me a report of how many hours my employees do per week and it seperate them in different categories.
What I would like to do is find a way to match the cell's description with the amount of total hours that were spend on certain project.
So here is the scenario.
In my department there 6 employees that are assigned to work on certain projects in daily basis. These projects are called CRs and to identify them I've added a number after them.
So we will have CR0001, CR0002, ect. These are unique projects.More that one employee that could woork at the same project as well on other sections but I am only interested on the projects.
To help you understand what I am trying to do I will give you an example.
John is working on project CR0005, CR0006, CR0001. He has been working on them three projects for the last week.
Here is the summary of the hours:
- 5 hours on CR0005
- 10 hours on CR0006
- 5 hours on CR0001
This information is inputed in Excel spreadsheet Week 1 .....
Summary Report Of Workbooks
I have been asked to create grand summary workbook that basically copy and paste from a few workbooks in different folders location in a network drive in this grand summary. The sheet to copy from these other workbooks is named as "summary" and the location and filenames are as follow:
The data can be found from A7 to R7 downwards in the "Summary" sheet tab in each of the workbook above.
The data are updated every week and as such I hope to have a macro create to first clear the old data and update the new data.
Save & Email A Report
I am using the below code to save & email a report that is needed for a variety of different locations. I would like to be able to automate sending to multiple branches a branch specific report with some sort of a loop but I am not sure how to do it. So far, I have the below code that works for saving & emailing to one branch, however I was wondering if someone has an idea on how to loop the procedure and send to multiple branches? For example, if I have 3 branches 3 different managers:
Here is the code so far:
Private Sub emailreport_Click()
Password = "nohs1"
On Error Resume Next
Dim wb As Workbook
Application.ScreenUpdating = False
Set wb = ActiveWorkbook
With wb ....................
Summary Report Using VB Code
I have a report that I need to summarize, here is some sample data.
F23CH ROB MASSON10
F23CH ROB MASSON7W
F23CH ROB MASSON8
F23CH ROB MASSON9
F32C5 JOHN COUTTS16
F32C5 JOHN COUTTS17
F32C5 JOHN COUTTS21
F32C8 SCOTT PLAKHOLM7
F32C8 SCOTT PLAKHOLM7S
F32C8 SCOTT PLAKHOLM7W
F32C8 SCOTT PLAKHOLM8
Desired results would be column A Dealer Code, Column B Particpant, Column C a summary of Modules taken, Column D a count of Modules
F23CH Rob Masson 10,7W,8,9 4
F32c5 John Coutts 16,17,21 3
F32C8 Scott Plakholm 7,7s,7w,8 4
Is there a easy fix using VB code? The report is usually between 1500 lines and 2000.
Multiple Criteria Report
I have a 7-column 'Task' list that I need to query, and extract (preferably to a separate sheet) only those tasks that start 'ON' or 'BEFORE' the queried Date (or date range), AND/OR end 'ON' or 'AFTER' that date.
Column 1 = Dates
Columns 2-4 = Task IDs (ID1, ID2, ID3 - must match as a group)
Column 5 = indicates either Start or End of Task ('S' or 'E')
(each Task has 2 such listings - a Start [s] and an End [E])
columns 6 & 7 = Misc. & Notes (unimportant as identifiers)
So, if a Task (identified collectively by col. 2-4) starts On or Before and ends On or After (col 5) the date (col 1) queried, then that Task should be included in the results list. The tricky thing is that a task that starts long before the queried date and/or ends long after the queried date needs to be included in the results list - therefore 'S' and 'E' (Start/End, col 5) and the 3 Task ID (col. 2-4) must be used along with the date for the query. And, if a task starts (or ends) on the queried date, then its counterpart (S/E) should also be included in the results list (if available).
Date | Task-ID1 | Task-ID2 | Task-ID3 | S/E | Misc. | Notes
Jan 1 2008 | AA | def | XX | S | B-11 | notes
Jan 1 2008 | FF | xyz | ZZ | S | C-44 | notes
Jan 2 2008 | DD | def | YY | E | J-55 | notes
Jan 2 2008 | GG | abc | CC | S | C-22 | notes
Jan 2 2008 | BB | xyz | DD | S | M-33 | notes
Jan 3 2008 | AA | xyz | CC | S | S-77 | notes
Jan 3 2008 | BB | def | ZZ | E | A-99 | notes
Jan 4 2008 | GG | abc | CC | E | C-22 | notes
Jan 5 2008 | AA | def | XX | E | B-11 | notes
Jan 6 2008 | BB | xyz | FF | S | J-55 | notes
Jan 6 2008 | DD | abc | AA | S | A-99 | notes.............
Report By Date Criteria
I am trying out a new spreadsheet to log my cycling. I have attached the example so far. I am going to have a form appear and fill it out. Upon clicking 'Add' button I want a macro that will search column B (a list of dates) and match the date the users filled out on the form with the spreadsheet and then paste the corresponding form data in that row.
How would I accomplish this? Does the formatting of the date field complicate this since on the spreadsheet I display "Saturday 1/08" and on the form the user enters in "01/08/2008"
Transfer Data From One Tab To Another To For A Report
I would like to transfer data from one tab to another to for a report.
First off I would like to take all the rows that have "O" in column B. But only if the year in coloumn Q or R is this year. (Q is order data so I show all new orders taken this year) (R is despatch date so I show all orders despatched this year)
There will be around 25 orders total
I would then like to add a total to the bottom of this set of data.
Then move 4 rows down and bring all the data that has a status "HP" in column B regardless of any other criteria.
There will be upto about 100 Hot prospects (HP's)
My data is held on tab "BRAND" and I would like to generate the report on "BRAND HP"
My data has a header row in row 1 and holds data from A:T
The data is of ever increasing length.
Dragging The Formula To The End Of The Report
Here's my Formula:
Selection.AutoFill Destination:=Range("H2:S2702"), Type:=xlFillDefault
This is dragging the formula to the end of the report. My dilemma is that this was captured with the macro recorder. Is there a way to change "S2702" with whatever row Column S ends with? Meaning this formula will be used on different sized reports so the numbers will vary. I just need a direct statement to compensate however large the report is.
UserForm For An Expense Report
I have an expense report with one row labeled as "Auto", and 7 columns labeled with Sunday, Monday, Tuesday, etc. I'd like to double-click a cell within that row and have a userform (or something else) pop up with 2 spots for data entry: "Personal" and "Company". A user would enter dollar amounts in one or both fields. After they're finished, I would like the total of what they entered to populate the cell that was double-clicked, but still have that breakdown available or even be able to change it by re-double-clicking the cell. Is that even possible?
To add complication, at the end of the row are two additional columns that total personal and company expenses. I'd have to have all personal expense amounts sum together in its column, as well as all company expenses sum together in the other column.
Report Of Table By Day & Month
I am using Excel 2007 and need some help. If you could please download and open the attached excel sheet then i guess you will be able to understand my problem easily. I am also not sure if what i am asking is really possible or not in Excel (would prefer without any VBA coding but if there's no other way then VBA coding would also do).
What i need is that based on the data from 'data' sheet i want to dynamically fill the ' Date' column in 'CatA' sheet. If you check the 'Expected Result' sheet where i have manually filled the dates and automatically calculating the 'Amount' but i was curious to know if somehow i could dynamically fill the values in 'Date' column based on month name in header?
Need To Build Up One Dynamic Report
I need to build up one dynamic report.
Here is the task:
1) Everyday workers fill up with records in each sheet (record count can be different, because there is a "List" table)
2) Each day is in one separate sheet (for example: 1st June is in sheet with name 1, 2nd June is in sheet with name 2 .)
3) ALL sheets are named 1, 2, 3 ... 31
4) And in the sheet with name "ALL records" must be generated all records from sheet 1,2, ... 31
Here is my Example
VBA To Recognise If A Certain Report Is Already Open
How can I get VBA to recognise if a certain report is already open?
Basically, what I want to do is if the report is open then just copy the sheet across else if the report is not open the open the rpeort and copy the sheet across.
I'm only struggling with the first part, I can get it copying over fine but its the "if the report is already open" part I can't get my head around...
Report & Summarize Counts
Refer to the attached sample workbook. I need to track daily tasks of our staff and then indicate these tasks on the "Activity Report" sheet.
Each task will have a code and I will indicate; by menas of the code, which activity was done by inserting that code in the time slot provided.
Once each day is completed; I need to tally up the amount of each activity that took place and it will be diplayed in the "Specific Activity Summary" section of the sheet.
Also; once the tally for each activity is completed, the amount of time spent on that activity will be indicated on the "Daily Activities Summary" sheet.
How do I go about linking the specific cells to be able to create this "tally" and "summary."
Create A Graph Report
Rep NameCall StartedDuration h:mm:ssRep 12:19:18 PM0:00:36Rep 13:09:01 PM0:00:56Rep 13:11:01 PM0:01:05Rep 13:12:12 PM0:01:13Rep 13:26:26 PM0:00:39Rep 27:08:35 AM0:01:57Rep 27:16:32 AM0:02:12Rep 21:47:17 PM0:02:01Rep 37:05:01 AM0:10:37Rep 37:36:24 AM0:00:16Rep 311:41:43 AM0:15:21Rep 312:47:36 PM0:00:46Rep 31:45:36 PM0:02:19Rep 31:49:54 PM0:00:32Rep 31:51:46 PM0:00:56Rep 31:55:03 PM0:00:35Rep 31:59:26 PM0:00:22Rep 47:04:24 AM0:00:16Rep 42:40:41 PM0:00:08Rep 43:06:22 PM0:02:16Rep 43:21:35 PM0:00:04Rep 43:21:49 PM0:03:05
which is the time that any rep started a call and the duration of each call
and i need to make a graph from it that kind of looks like this:
(not actual data)
this way you can clearly see that for the most part rep 3 was the most productive however only rep 2 was on a call after 2pm.
i need this report to see tendencies on how much time is wasted on meetings and such keeping the reps off the phone.
Compress The Lines In The Report
I need a macro where I can compress the lines in the report below. By other words will I end up with totals on lines with the same text information. This report can have different number of lines, so it is an advantage if the macro is dynamic.
Macro To Open Report
I download excel report from Business object reporting tool and the file will be very huge something like 25MB and it takes nearly 40 Min to open the report and the data will be merged in the report......can any one suggest what can be done to open the report quickly or can we open the report by using macro.... can we improve the performance of opening the 25 MB report thru macro...
Rolling Report For The Whole Year
What it is, I have a rolling report for the whole year, each with a score for the week.
However, it needs to show the whole year, but I need a seperate box with a summary of only the last 4 weeks on a rolling basis, ideally this would automatically update depending on the week.
Addresses Match In Report
I have to separate reports. The first report lists the address in 5 columns (house #, Street, City, State, Zip), and the second lists it all in one column. Right now I have to manually check the second report against the first report to see if any of the addresses match. I do this daily, and it's rather time comsuming.
Report Formatting Macro
I have a macro (see attached) that works fairly well, but the one thing I cannot figure out how to do it how to merge cells whenever there is a break in Project ID.
If you take a look at the spreadsheet, you will see that columns B and C for the 2nd Project ID is merged just how I want it to look. The number of rows in each Project ID is variable.
Automate Report Generation
I have multiple files that I need to get data from. My dream is to push a button and gather the data from variable files. (I know how to make the button and get data from single file).
The file name is below:
Cell A1 contains this formula ='C:ReportsYear 2009[CityWaterReports Jan 2009.xls]PHFlows'!$B$44
Cell A2 contains this formula ='C:ReportsYear 2009[CityWaterReports Feb 2009.xls]PHFlows'!$B$44
and so on.
I would like the customer to be able to push the button and be asked to enter the year(eg: 2008) and have the formula update to the new year in each cell.
VBA: Sort And Report To A Form
From the sample file, I am using the data on (start) worksheet. (Sort and report sheet). I'm after a reporting routine that I want to run on the launch of a Userform. What it would do in an ideal world is when I click the "launch report" (command) button in Excel, it would look at a sheet (start), and extract the top 5 values from the sheet, both for the overall list, and the top 5 values per unique name, then returns that data to the Userform for viewing only.
Data Validation Report
I have a workbook of about 30 worksheets which makes extensive use of Data Validation. Essentially, data entry cells is validated against values within some predefined ranges (there are 6 ranges in total).
I am preparing documentation for this workbook and would like to document the data validation being used. Is there a way to extract this information? Where/How is it stored?
Creating A Dynamic Report Tab
I am trying to generate a good looking, dynamic report tab that runs off another tab that contains ugly raw data for website traffic. This should then drive a couple of charts based on the parameters I specify.
The Raw Data
This is daily data for keywords that we advertise on through Google. Associated with each keyword are various fields:Clicks
CPC (Cost divided by clicks)
CPQ (cost divided by quotes)
CPS (cost divided by sales)
CTQ (quotes divided by clicks)
QTS (sales divided by quotes
CTS (sales divided by clicks)
There are maybe 30 keywords - each with daily information for the above fields.
The layout of the raw data is:
Column A: Date
Column B: Keywords
Column C: Clicks
and so on.......
This is the nice looking report where we can pull in the required bits and bobs in a nice format. Because some of the above fields are calculations I've not been able to achieve what I need using a normal pivot report.
What I would like to be able to do:
Populate a summary report using the above raw data but be able to specify certain things such as:The date range I want to see data for
The specific keyword(s) I want to see data for
For example v- we are feeding the daily information into the raw report each morning. One day I might want to see summary stats for a particular data rang on maybe 3 of the keywords so I'd somehow like to select appropriate date ranges and keywords from drop down lists and then I see the summary stats for the appropriate date range broken down by each keyword.
I'd also like a total underneath this report to add up or calculate the totals and averages for the data based on the parameters I specify.
Finally, given all of the above, I would like to run a dynamic chart based on the raw data but taking into account the filters I specify on the slick report sheet.
So....if I set the date range as From: 01/03/09 to 12/03/09 I can see daily clicks, costs etc for the particular keywords I specify in the drop-down menu or what-have-you
Date Formula In Report
I have a report that gives me dates in a format that's mostly useless. I am sure there's a simple formula I can do each time I run the report, but I'm not sure. My report gives me dates like this...
YTD And Period Sales Report
I have an Access DB that I query with excel and I pull two years worth of sales data. I have tried using a pivot table report to display the following data, but I can't figure out how to display the data in the following format.
The pivot table will give period and YTD but the totals for YTD are not cumulative for the year up to that period (it seems to total the period only).
For the current Year- period (month) and YTD (only up to the period displayed).
For the last year- period and YTD (only up to the period displayed).
The fields I query are Customer, City, Product, Salesperson, Period(month), Year and Sales
I have tried putting the queried data on one sheet and then using formulas on another but I am not having any luck.
I would also like to be able to select which period I am viewing but this is secondary.
I can upload an example if necessary.
Format Report From QuickBooks
I download Quickbook reports; Once I download the reports I have to format the reports. I tried recording a macro and it worked perfectly until I added an account and it left some of the rows out. When it downloads the reports it has the row headings in different columns(I am talking about the P&L report in Quickbooks). I am trying to create a loop macro (or a macro) that will move all the row headings into the same column; If I add or delete accounts it will adjust.
Report Based Off 2 Worksheets
I have two worksheets. Worksheet1 has material number and plant number. Worksheet2 only has material number (along with other columns of info). What I am looking to do is look at worksheet2, find the corresponding material number on worksheet 1 and populate worksheet3 with all the info from worksheet1 and worksheet2.
Now this gets tricky for me because worksheet1 has duplicate material numbers, because there are duplicate plant numbers. I need worksheet3 to produce a row that contains all plant numbers, the corresponding material numbers and the rest of the columns from worksheet2.
Dynamic Report By Criteria
Right to the point. I got two sheets in my file, one named "Order" and one named "Input". In the input sheet there is costs & revenues divided into several different divisions/activities. In column A I got the name of the cost/revenue and then the value for every period Jan-Dec in columns B-K. And the name of the activity is in column A under the cost/revenus for that activity, like a " SUM" row.
Now, in the the "order" sheet, you can select a specific activity from a rolllist and then I want that activity's revenues & cost to be shown. I've attached the file to make it easier for you guys to understand my needs. I think I need some sort of 2 criteria VLOOKUP, that is first search för the correct division, once this is found search for the different costs & revenues and the return a value. But I'm not so good at this so I can't get it to work. Maybe the INDEX function is good here but I don't get that at all. I tried Daves "2 criteria Vlookup" but all I get is #ERROR.