# Calculating Adjusted Factor Based On Variable Values

Feb 7, 2014
Here is a table with values from Factor1 to Factor 5. Underneath that, for a specific index, I can mark Y or N for factor values. For instance, for index 1, Factor1 and 2 is marked as Y. The goal is to calculate total factor based on variable and factor values. In this case, variable value is 6, factor 1 =1 and factor 2=1.25). So Total factor = 6*1.25*1.5 = 11.25. If all factor values are marked as N, then total factor = variable value (Example is for Index 3)

How this can be implemented. I tried using COUNT function to count the total number of Y but that works only if all factors have same values.

Table_factors.jpg

View 4 Replies
ADVERTISEMENT
Apr 30, 2013

Using excel 2010: I am calculating a dollar weighting with one isolation factor, the state where the sale took place. My current formula is below. Each dollar amount in AG3:AG2000 has a corresponding weighting in AB3:AB2000. The results are isolated by the corresponding state in the range E3:E2000.

I want to add in an additional isolation, the month when the sale took place. The months are located in H3:H2000. Where in my current formula would I insert the isolation for the month?

=SUMPRODUCT(--(Sales!$E$3:$E$2000='2013 NB'!S8),

Sales!$AG$3:$AG$2000,Sales!$AB$3:$AB$2000)/

SUMIF(Sales!$E$3:$E$2000,'2013 NB'!S8,Sales!$AG$3:$AG$2000)

View 9 Replies
View Related
Feb 3, 2014

See attached file. I am looking for a macro which can copy/paste down a value (column A) by a given factor (column B). The result should be a list of all values (column C). The amount of values and factors is unknown (the attached example ends at row 5).

copy.xlsbâ€Ž

View 4 Replies
View Related
Jul 15, 2014

I got a list of products and a price list. How to obtain a total for a given subset of products using a formula? Kind of sumif multiplied by a vlookup...

View 4 Replies
View Related
May 22, 2014

I am currently working on a spreadsheet that records data from 11 different locations, with each location having it's own page within the workbook.

All of the pages are identical in terms of how the data is stored, the only difference is literally the name of each page (i.e. the location).

What I would like is to have a master page that then pulls through the relevant data, dependent on which location I choose from a drop down list on this page. As each individual page is identical in terms of lay-out, one formula will work for each page, with the only obvious exception is the page reference embedded in the formula. I know how to do a standard lookup for various figures, but I can't figure out a formula that would work with 11 different options... Is there any way to accomplish this?

View 1 Replies
View Related
Feb 2, 2009

I need a way to calculate building rates based selecting the building and the value selected;

I have a list of building construction (fire resistive - protected, non combustible - protected etc)... in cell N8 and the limits in cell O8.

Now what I need to do is calculate the rates in the file attached (cells A5:J21 in my worksheet) based on the building construction and the value/limit I select.

View 6 Replies
View Related
May 6, 2009

Using Excel 2002. Here's my problem.

Column A contains the month (as text)

Column C contains an employee name.

Column O contains a reason for absence.

Column K is the number of hours of absence.

The employee's name may appear several times in the worksheet. What I want to do is count the number of hours per type of absence.

E.g. If A=MAY and C=BOB and O=SICK then total hours from all instance of K = X.

This will be used on a seperate worksheet where the name C will be referenced from a validation list.

View 9 Replies
View Related
Jun 15, 2014

I have a list of houses for sale in various suburbs, divided into houses with various amounts of rooms.

I want to be able to find the average cost of each size house in each individual suburb.

i.e. City Centre, 3 Bedroom, 250000

City Centre, 2 Bedroom, 200000

City Centre, 1 Bedroom, 150000

What is the best way of doing this? Multiple worksheets?

Obviously the sample worksheet I have supplied is quite small, I will be working with much larger lists once.

Sample book.xlsx

View 7 Replies
View Related
Dec 15, 2009

I'm having difficulty trying to write a formula for the following type of data:

[data] ....

This is a data set with 10k+ lines; I have about 150 different items in the "Criteria" column. What I want to do is count how many unique items occur in "Column to be counted" by each vairable in the "Criteria" column. The output should look like this: ...

View 9 Replies
View Related
May 7, 2007

I'm trying to make a spreadsheet that will count the number of times a certain incident occurs, for a particular person, for a particular month. The attached spreadsheet is an example of what I need done.

For the attached spreadsheet, I need to find out how many times x employee has been late for x month, and how many times they've been late overall.

You can see one of the many tries I've attempted in the second sheet, but it doesn't seem to want to work. I have to be able to do this without VBA, because of signature issues.

View 9 Replies
View Related
Oct 9, 2008

I'm using a few worksheets to make balance sheets. I use a connection to a database. Worksheet1 contains the opening balance amounts per account.

Worksheet2 has a balance sheet. Because the database contains more than one administration I use the sumproduct function so I can use multiple criteria.

The formula I use is:

=SUMPRODUCT((Worksheet1!A$1:A$4000=Balance1!$A$2)*(Worksheet1!C$1:C$4000=Balance1!A4)*(Worksheet1!G$ 1:G$4000))

One of the administrations has 3 new accountnumbers. These were added to the database. When I refresh the data Excel adjusts the formula and adds 3 rows to the ranges, except the last range. The formula then looks like this:

=SUMPRODUCT((Worksheet1!A$1:A$4003=Balance1!$A$2)*(Worksheet1!C$1:C$4003=Balance1!A4)*(Worksheet1!G$1:G$4000))

Because the last part (Worksheet1!G$1:G$4000) is not adjusted, Excel returns a #N/A error. What is wrong with this formula? It works great as long as no accountnumbers are added to the database.

View 3 Replies
View Related
Jul 6, 2006

I have a list of two columns. Here’s an example. The left most column provides the row number.

_ A B

1 1 0

2 2 1

3 2 1

4 3 2

5 4 2.5

6 5 4

7 1 0

8 1 0

9 2 2

Whenever there are two repeating numbers in column one, I want to reduce certain numbers in column 2 by a certain amount. The amount is determined by half the difference between the number in column B corresponding to the second repeated number and the number in column B corresponding to the row after the second repeating number. The range of numbers that are to be reduced begins with the row after the second repeating number and ends with the last row before number one appears in column A. The values in column A are integers, always starting with one. For example, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 5.

For the above example, after finding the repeating number two’s at A2 and A3, it would reduce B4 through B6 by half the difference between B3 and B4 (1/2). The values for B4 through B6 would be updated in column B. The same for the next repeated numbers, which is one at A7 and A8. Half the difference between B8 and B9 is 1.

Here’s what the updated list would look like:

1 1 0

2 2 1

3 2 1

4 3 1.5

5 4 2

6 5 3.5

7 1 0

8 1 0

9 2 1

View 9 Replies
View Related
Jan 17, 2008

i have a due date column and an adjusted due date column. a proof is allowed to be held 3 days, if it is held longer, the due date is adjusted. for every day over the allowed days that a proof is held, we are allowed 2 more days of production. i want to create a formula that will calculate how many EXTRA days the proof was held, multiply that by 2 and then add that many days to give us the adjusted due date. is there a way to do that?

View 10 Replies
View Related
Feb 26, 2009

I'm creating a spreadsheet that has:

- budgeted dollar amount

- entry each week for that week's total expense

- total expense to date

Question: how can I hold the value for "total expense to date" so that when the new week's info is added the previous total is not lost?

View 13 Replies
View Related
Apr 28, 2014

I'm trying to calculate the average for a range that begins with cell B15 and has various end points, depending on the day (since I'm pulling 2 actual years of data that strips weekends and holidays, as opposed to going back a set amount of days/years). Syntax for cell B4 to reflect the average of range B15 to LastRow? I tried several things and it didn't work. Rows 1-12 are being reserved for the summary calculations that will then be pulled into the final Dashboard.

View 1 Replies
View Related
Jun 27, 2014

I need a macro that will create a sheet at the end of the workbook.

Sum data from a variable amount of sheets and display that data on the created sheet.

Here is a step by step:

Starting on sheet 5.

Column D has a variable amount of part numbers in it. These part numbers would be different between the ascending sheets.

Column T, U, V has an inputed number in it that would need added up across all duplicate part numbers in all the sheets.

(Note: The data would also need started on row 4. Everything above row 4 is headers)

Here is a small example:

D E T U V

13019090W Part A1

68705500 Part B1

64202900 Part C-11

59634600 Part D1

26005300W Part E1

I need the macro to start with sheet #5(starting on row 4). Check to see if there is data in column T, U or V. If there is, to create a new sheet at the end. And copy the entire line into that sheet (starting on row 4).

After that, to check every sheet after (excluding the newly created one, starting on row 4) for data in Column T, U and V. And then check for duplicates in Column D on the newly created sheet. If there is a duplicate to add/subtract that number in Column T, U and V to the SUM in column T, U and V in the newly created sheet. If there is no duplicate, to copy the entire line to the new sheet.

So that when finished. On the new sheet, you have the SUM of T, U and V for everything that has data in T, U or V for all of the previous sheets, plus the entire line of the first instance (excluding the first 4 sheets).

View 2 Replies
View Related
Mar 18, 2013

I maintain the data flow at my work. We send and receive the data using excel files with specific formatting that I then upload to the database. Each time I send or receive the excel file I must log them, this is what my code question refers to.

I use RDBMerge to merge all the contents of the 100 plus excel files into one worksheet. The first part of the macro cleans up the merge data for use in the log (i have attached an example of the clean data and finished log).

The blue shaded area of the "Raw_Data" is what the clean data looks like, the yellow column is what current macro records for each record.

As you can see by the example the Raw_Data is only two files LL_LLL_BOB_ToLLLLL_20121228_01 & LL_LLL_BOB_ToLLLLL_20121230_01, each with more that one record.

The log code in column "H" Is based on this criteria:

First Letter of the Unique ID in column "E" - O, M, or L

Program Type in Column "F" - U or R

1. O-U = U

2. O-R = RU

3. M-U = U2

4. M-R = R2U

5. L-R = R

You will note that Columns G-R of the "Log Sheet" correspond to the "Record Type" found in Column "G" of the "Raw_Data" sheet.

This is the area where my skill at using scripting dictionaries fails.

The results for the log list each file only once, but the log code for each corresponding "Record Type" in columns G-R of the "Log Sheet" must contain each unique instance of the code. In other words

if LL_LLL_BOB_ToLLLLL_20121228_01 contains an O-U with an "A" Record Type and an M-R with an "A" Record Type; then, on the log sheet there needs to be the codes "U/R2U" in the cell intersection of the LL_LLL_BOB_ToLLLLL_20121228_01 record row and "A" column (which is column "G")

So, If the File contains one of each code for each Record Type the corresponding cell must house one of each code separated by a "/" without any spaces. This means the cell value could no code, or one code and all the variations in between to all five codes. Also, for ease of human reading the log codes should be concatenated in the 1-5 order that I listed them in (U/RU/U2/R2U/R)

Here is my code so far.

VB:

Option Explicit

Sub test()

Dim dic As Object, a, i As Long, rng As Range, e, w, n As Long

Set dic = CreateObject("Scripting.Dictionary")

[Code].....

View 1 Replies
View Related
Apr 17, 2007

I have the task of creating a spreadsheet that will track and give point value to our sales reps' daily accessory sales. The following is the point value criteria for dollars:

Sell over $30 - 1 point daily

Sell over $100 - 2 points daily

Sell over $150 - 3 points daily

Sell over $300 - 5 points daily

Sell over $500 - 6 points daily

Sell over $1,000 - 7 points daily

Each cell will have a different dollar value in it. I've tried so many different ways to do this IF factor that I have confused myself and spun in circles. Can anyone help me with this? I am about ready to pull out my hair, and really don't want to have to go in and manually do this daily for 30 reps.

View 5 Replies
View Related
May 22, 2007

I am having a problem getting a number to round correctly in Excel. I know I can use =ROUNDUP(x,x) to get it to the nearest whole number but I also need the rounded number to be a factor of another number like you would use in =MROUND(x,x). The problem is the MROUND function also rounds down. As an example if I have the number 12.5 and I want this to be rounded up by a factor or 4 I would get 16.

View 8 Replies
View Related
May 22, 2007

Which formula should I use to look for the present value factor if I have the interest rate and the # of periods. attached file.

View 9 Replies
View Related
Apr 14, 2009

Is there any formula witch i can use to find the smallest prime factor of a number?

Example: In A1 i write 30 (30=2*3*5 (the prime factors))

in B1 i write a formula, and the result will be 2 (smallest prime factor)

What is the formula?

View 7 Replies
View Related
Oct 15, 2013

Is there a way of returning the nth factor of a number via a formula?

That is to say, if I have 10, its divisors are 1, 2, 5 and 10, and if I wanted to return the second factor, it would be 2.

View 9 Replies
View Related
Feb 16, 2008

I have two factors that both change, resulting in two unique values. I'm trying to determine which portion of the resulting delta is attributable to each factor. Example:

Hourly Cost Run Rate Piece Cost (Hourly Cost / Run Rate)

$105.00 4,500 $0.0233

$126.10 3,000 $0.0420

Two unique results titled Piece Cost = Delta

$0.0420 - $0.0233 = $0.0187

How much of the $0.0187 is attributable to the change in Hourly Cost and how much of the $0.0187 is attributable to the change in Run Rate?

View 9 Replies
View Related
Oct 7, 2013

I want to group N elements which is a factor of 7 into groups of 3 randomly. For example, I have 21 elements:

ZSW

PMH

NYV

JTX

DEF

CRK

AOI

I want to group them into 6 more sets. Now, all in all 7 sets. Group them into other sets without the element repeating in the row it has occupied before. For example, for letter P. "P" has occupied row 2 in set 1, it cannot occupy row 2 anymore in other sets. Therefore, each element must have occupied row 1-7 in all the sets.

See attached excel file for the example output : grouping7-final.xlsxâ€Ž

View 14 Replies
View Related
Oct 30, 2007

i'm trying to use HLookup to find an adjusted midterm grade that's given. but i have some conditions:

If student missed exam and has a zero – keep zero.

If student has a grade of 1-119 points, increase their grade 40 points.

If student has a grade of 120-125 points, increase their grade 35 points.

If student has a grade of 126-131 points, increase their grade 31 points.

If student has a grade of 132-139 points, increase their grade 27 points.

with these conditions, if my midterms grade is 120, how would i calculate it using HLookup? i worked on it but i keep getting the #NA! error.

=H4+HLOOKUP(H4,B24:D25,2).

View 5 Replies
View Related
Jun 18, 2009

On my userform I have 20 comment icons (imported pictures), that when clicked need to bring up an InputBox for the user to add a comment, and store that comment in a Public variable specific to that comment which will later be written to the spreadsheet.

To keep it simple, lets say I have two comment icons to click, one to add comments to the "Testing Completed?" field, and one to add to the "Sign-Off?" field.

The first comment icon is named TestCompIcon, the second is SignOffIcon, and the public variables they write to are called TestCompComment and SignOffComment respectively.

To avoid having to code the InputBox procedure for every comment icon on the userform, I was hoping that upon click, the icon would call a centralized routine that would establish the name of the variable that needs to be written based on the name of the icon comment that was clicked. Something like as follows:...............

View 9 Replies
View Related
Mar 6, 2009

I have a bunch of start End times in columns calculating total time :-

View 12 Replies
View Related
Jan 9, 2010

I have a large spreadsheet with about 250 worksheets, each of which contains among other things a row of values that require further calculation (the values are being entered manually). The format of these rows is simple:

CodeH343B734G232L383N343M386

Count 1 3 2 4 3 2

Given that these rows are identical in size and they are in exactly the same cell positions in each of the 250 sheets, I need to find a way of getting each of the values entered in each of the 250 sheets automatically copied across to a different sheet and added to an existing total. In my limited understanding of Excel I consider such operation to be similar to a sum function which involves multiple cells in multiple sheets. Despite my best efforts I’ve yet to find a solution to what may be a very simple problem.

View 2 Replies
View Related
Jun 11, 2007

I have a spread sheet which is organised in date order column A and produces three signals Buy, Sell, No trade in column S. If i get a signal to buy or sell the price is taken in column T so i might have Buy - 1.9977. I wish to calculate the diff between the value taken to buy in this eg and deduct this value from the opp signal at some point ie a sell signal. Other buy signals and notrade signals should be ignored. The opposite is true for a sell signal

Eg

A,s,t,u

13/4/07, buy,19955,35

12/4/07,no signal

11/4/07,no signal

10/4/07,no signal

9/4/07, no signal

8/4/07, no signal

7/4/07, sell, 19990,13

6/4/07,no signal

5/4/07,no signal

4/4/07,buy,19977

if a buy signal is generated then in this eg 19990-19977 gives the diff if selling then 19990-19955 gives the diff .

View 14 Replies
View Related
Jul 28, 2006

I created a pivot table in which sales amounts are represented and a derived table in which market share percentages are showed. Now i am looking for a formula that is able to calculate average market share values. Depending on which country i selected in the pivot table and which category, the number of active companies are changed. How can i formulate this formula to calculate average market share percentages in a certain period. check out my attached file to clarify the situation.

View 2 Replies
View Related