SUM Count And ADD Expression With Multipliers

Mar 26, 2009

I'm trying to make an expression to calculate some fields in Excel 2007.
Trying to check fields up to a given number and give them a high multiplier, and add the rest of the numbers with a lower multiplier.

I have multiple fields with numbers in hundreds. I want to multiply the sum of this fields (up to 500) with 4. But the expression must also start the count from the first field, and when im hitting 500 as a sum I want the rest to be added with 2 as multiplier (the reason for the prioritizing of the fields is that they also have their own values/multipliers, but I'll skip that to avoid to much confusion here).

It's probably a lousy description. I'll give an example:

Field 1__Field 2__Field 3____Sum
100____300_____500______2800

How in earths name did I get that Sum you might ask.
((100 + 300 + 100) * 4) + (400 * 2) = 2800

400 is the number left from the third field wich I only want to multiply with 2 instead of 4.

Another example:

Field 1__Field 2__Field 3____Sum
300____600_____500______2000

((300 + 200 + 0) * 4) + (900 * 2) = 3800

900 is taken from the rest value of field 2 and 3.

If there any way of doing this "sum check and multiply, and then add the rest with a different multiplier"?

View 11 Replies


ADVERTISEMENT

Creating Ranges For Multipliers

Mar 9, 2009

I am attempting to create a formula for a project. The multipliers I use will be based off of # of units used. So lets say I have 500,000 units. The first 100,000 would be multiplied by 9.3, 100,000.01 - 250,000 would be multiplied by 9.5 and 250,000.01 - infinite be multiplied by 9.7. I know I can created different cells, but wanted to see if this could be done with one formula. I tried using sumif but that doesnt appear correct.

View 8 Replies View Related

Use Of AND In Expression

Mar 15, 2008

I want to count the number of cells in a row containing a value greater than a fixed number but less than a number entered in another cell.

For example, in the cells A1..K1 I want to know the number of cells which have an entry greater than 7 but less than the value I have entered in cell M3. I have used the COUNTIF in other circumstances but I cannot find out how to use it with this "greater than and less than" condition?

View 9 Replies View Related

Rmdir Expression

Jul 14, 2009

I'm having trouble with the Rmdir statement.

I have tried ...

View 10 Replies View Related

IF Statement With Array As Expression?

Jun 21, 2014

With Excel you can do If(array, array2, false) to poplulate another array. Is there a way to replication this without looping. For instance can the IIf hold an array as its expression or is there any other way of replicating this If statement without looping?

View 4 Replies View Related

Regular Expression For Password

Mar 15, 2014

I want to apply regular expression for password

a) The first letter cannot be number
b) the password should have a combo of numbers letters and one special character
c) The password should begin with a big case letter

View 1 Replies View Related

VBA Expression To Insert Pagebreak

Oct 29, 2008

Here's what I need to do. I have a list of row numbers in AA2:AA6, so for i =1 to 5
I want to insert a page break before cell (column AA and Row(#in cell AA2-5))

View 14 Replies View Related

Long Expression For For Sum Range

Jul 22, 2009

what the long expression for the range being summed below.

Reason: I need to exclude some cell values.

View 11 Replies View Related

Regular Expression For Numerics Only

Jul 31, 2009

I'm trying to figure out the whole Regular Expression thing...so I figured Hotpepper's EXDATA UDF would be a good place to try and rewrite with Regular Expression...I got it to work...but not sure why as it seems opposite of what I would have expected...

eg pattern [^/d] i thought would give me everything except numerics...but it appears to be giving me numerics....

here's the code and sheet...can someone help explain what's going on? .......

View 9 Replies View Related

Replace Sumif Expression

May 24, 2007

I am currently using a SUMIF statement as follows: =SUMIF(W1:W1500, "Charnwood" & "*", S1:S1500). The problem i am having is the fact that SUMIF doesn't work with a reference to a closed worksheet. I tried using SUMPRODUCT but it did not work. The reason it didn't work is because I need to find in column W anything with Charnwood and anything else past it, auch as Charnwood Estates. This is what I tried: =SUMPRODUCT((W1:W1500="Charnwood")*(W1:W1500="*")*(E1:E1500="S"),S1:S1500)
which of course is a syntax error.

View 2 Replies View Related

Time Error '16' Expression Too Complex Run

Dec 7, 2009

Using Excel 2007 the below code causes Run Time Error '16', Expression too complex.

It works fine in Excel 97, 2000 and 2003.
why this would now cause an error?
My search on google only refers to this error in relation to charts.

View 6 Replies View Related

Error / Constant Expression Required

Jan 22, 2013

I am getting 'Constant Expression Required' and this line of code highlighted.

Code:
Const sFile As String = ThisWorkbook.Path & "Survey.xlsm"

View 5 Replies View Related

Evaluate Expression In VBA Using Cells As Variables

Jul 9, 2007

I need a nudge in the right direction here. I have found several examples on the board that have spawned some ideas but need a little more help.

I am looking to enter variables into 2 columns A and B and then run these variables through an expression.

I have already done basic cell math and want it to be cleaner by using VBA to run the calcs and then spit the answers back into the spreadsheet.

I think I have an idea as to how it need to function but do not know the exact commands to make it efficient.

View 9 Replies View Related

Expression For Pop-up Message Based On Cell Value

Feb 22, 2009

I have been reading the different post here on the forum.
I have found a snippet of code that will open a pop-up message from a value of a cell. I would llike to do this on one of my reports. Here is the scenario.

Range (R5:S5) 0.15 them MsgBox "Note Must Be Entered For +/- 15% change"
But There are 14 different cells that I want this to work for. The value differs from day to day, and this should pop-up happen without a user having any actions other then the calculated value. But ones the note is entered in the "Notes: cell the message will not return.
Hope I explained it correctly.

The value of the cells in question are calculated in each cell with a formula example "=IF(ISERROR(Z20/H5),0,IF(ISERROR(Z20/H23),0,(Z20/H23)))"

View 9 Replies View Related

VLOOKUP Gives Error With False Expression

Mar 1, 2010

I have a formula that has been working and it looks like this

=VLOOKUP(A13;'IFS export'!$A$1:$F$19000;4;FALSE)

Now I want to use the same formula in an other workbook and it gives an error

=VLOOKUP(A2;DRAWING!$A$2:$C$9168;3;FALSE)

When I type this formula I get the window that says
"This formula contains an error.
*For information about fixing common formula problems, press help.
*...........
*..........."

And if I go and try to change the first formula that has been work it gives me the same error.

View 9 Replies View Related

Excel 2007 :: Sum Only Cells That Have Expression Paid

Mar 25, 2014

In excel 2007 i need to do a formula...

I have the number of hours and de couste...in an other cell i have the expression that says that is paid or not....

I need only sum the cells that have the expression paid ...how do i can do this?...

View 1 Replies View Related

Function To Indicate Whether An Expression Returns A Non-zero Result (2007)

Jan 28, 2010

I have this COUNTIFS expression buried in a larger formula:

COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1")

and it always returns a value of zero or some positive integer.

I'm now looking for a little "function" that I can wrap around this expression that will:

A) indicate any non-zero result as 1 or TRUE

and

B) indicate any zero result as 0 or FALSE

Something like...

AREYOUNONZERO( (COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1") )

I'm sure there's a fairly efficient way to do this... but I'm totally stumped at the moment!

View 7 Replies View Related

Add A Single Expression For Conditional Formatting Across All Cells

Jul 12, 2008

I have a large spreadsheet in which I have reached the limit for conditional formatting. (i.e. 2050 rows)

To resolve this I can add a single expression for conditional formatting across all cells. This means I need to create a more complex expression.

I effectively have two types of conditional formatting that are very similar. I have the standard “Yes”, “No” & “A/L” which I wand to shade accordingly. I then have alternating columns of “ Yes “, “ No “, “ A/L “. I have introduced spaces to stop these values from being counted by another formula but still display yes and no. I want the shading to be the same in both cases.

I have built the following expression which does not seem to work.

=ISNUMBER(SEARCH("Yes",(ADDRESS(ROW(),COLUMN()))))

The two components of the expression work separately:

=ISNUMBER(SEARCH("Yes",P3))

=ADDRESS(ROW()-1,COLUMN())

View 9 Replies View Related

Expression In IF Theory That Works Based On Cells Containing Part (not Whole)of A Value

Apr 5, 2013

Our company initial is TP, but sometimes it might be combined with a reference number, e.g TP5659

I would like the IF formula to stick pick this up..

I know if it was just the phrase 'TP' I would use =If(a1="tp"...

How do I express that I would like my If formula to work when something 'contains', not an 'exact match'

View 3 Replies View Related

Compile Error (Constant Expression Required) When Using Macro Twice

Apr 1, 2014

I'm trying to use the macro below (twice but with different variables) but everytime I get the error "Compile error: Constant expression required".

[Code]....

View 3 Replies View Related

Excel 2007 :: Loop Expression Won't Recognize Values Are Equal?

Apr 20, 2012

(Excel 2007) The issue I'm having is that a loop statement of mine is failing to recognize that a couple values are equal. It works for the first 3 iterations of the loop, then stops recognizing. I tried copying another set of numbers in the failing one's place, and that actually worked. I can't attach anything, so I'm including a link to a detailed screen shot with some notes on it and code that I'll host on my site. Not sure how else to explain the issue, but if you take a look at the screen shot you can see the excel sheet being worked on and the vba code running. I will also include a text file of the code

Here are the links to the screen shot and text file of my code
Text file
Screen Shot

View 3 Replies View Related

Regular Expression: Check If A String Has A Sequence Of 6 Decimal Digits

Apr 13, 2007

I am using the following to check if a string has a sequence of 6 decimal digits in it. But am getting an error. If(str Like *######*). I have to check if str has values like 123456USA ; ABC725439 ; jh658478hd. I thought # represents a single digit and * represents any no of characters

View 2 Replies View Related

Replace Filename With Variable In "Activecell.FormulaR1C1=" Expression

Feb 27, 2009

Replace filename with variable in "Activecell.FormulaR1C1=" expression
I have recorded a macro which contains several lines of code like this one:

View 2 Replies View Related

Regular Expression To Say "this OR That"

Nov 2, 2007

I've some code that I use to scan HTML to find images. The basic part string I use is:

WildSought = "**"

The problem is that there are several ways to close an image tag. The above closes using /> but you could also use "> for example. Is there a way in my regular expression to say "this OR that". Maybe it would look something like:

WildSought = "*

View 9 Replies View Related

Conditional Sum & Count: Count Request Matching The Crateria Of Date And Other Conditions

Nov 17, 2007

see my attached sheet cotaining the following questions. in a day report sheet how should i count request matching the crateria of date and other conditions. in a monthly report a heavy conditional sum calculation which make slower sheets how can i make it faster.

View 2 Replies View Related

Count Number Of Equal Cells With A Prefix In Col D And Insert Count In Col A?

Aug 7, 2013

I need to count the number of equal cells in col D beginning at the top of the column. The counted cells must begin with a text prefix of "Category:" without the quotes.

Some but not all of the cells in col D begin with a prefix of "Category:" without the quotes, followed by a word or words following the word "Category:" See examples below. All of the terms prefixed with "Category:" in col D are in alphabetical order. I need to count the number of identical cells in col D with the "Category:" prefix.

Examples of the contents of cells in col D with the "Category:" prefix are as follows:

Category: Adversity
Category: Answers
Category: Assurance
Category: Blessings
Category: Build
Category: Change
Category: Children
Category: Choices

Cells above and below cells with a prefix of "Category:" in col D are not adjacent.Cells above and below cells with a prefix of "Category:" in col D are separated by 3 to an undermined number of rows.

I need to count the number of equal cells in col D and insert the count in col A at the last equal term. For example, col A above would have 93, 1, 1, 5, 10, 8, 3, and 12 inserted into col A.

View 9 Replies View Related

Formula That Adds Count But Saves Count So Can Clear Field

Jan 20, 2008

I want is a field (e.g Large Parts Used) where I can enter in a number, then basically this number is subtracted from current stock field for Large Parts so I get an updated field of current stock on hand.

But what I want to do is once I've entered the number in the Large Parts used field, I can then clear that field but have the corresponding Current stock field to maintain what was last enetered.

E.g

Large Parts Current Stock = 50

(enter in) Large Parts Used = 2

Large Parts Current Stock = 48

(Clear field where 2 was entered into Large Parts used)
(Field still stays at Large Parts Current Stock = 48 although field where 2 was entered was cleared, so need it to save the information so can continually clear and re-enter amounts and have the stock continue to reduce)

View 9 Replies View Related

Count If Formula: Count The Number Of Nhew Stores Each Quarter

Aug 21, 2006

going down are stores a, b, c, d.... what i'm filing in across is the square feet of each store and what quartr or year each store came into place. so there will either be a 0 or a number Now, I want to be able to count the number of nhew stores each quarter. how do i create a formula that just recognizes it the first time there is a number and not a zero... because i will put the square feet in subsequent quarters after it opens so i can see yearly how many square feet the store had. then also, how can create a button on the page that will say quarterly numbers and a button that is annual. so that i can hide the quarterly columns and just see an annual spreadsheet... and for the quarterly button so i can hide the annuals and just see the quarters....

View 6 Replies View Related

Count If / Compare 2 Ranges And Count Where Cells In Same Row Differ

Apr 15, 2014

Column A has current building, column b has future building. Would like to count the number of changes without adding a separate column with an if statement.

View 3 Replies View Related

Count Formula (count Everything Excluding 1 In One Row, While Looking At Another Row To Determine The Group)

Mar 26, 2009

I am trying to come up with a formula that will count everything excluding 1 in one row, while looking at another row to determine the group.
The attached example explains things a lot better.

I am going to have 2 formulas. 1 for the "Big" group and one for the "Small" The formula needs to look first at the column that has the group in it. Then it needs to count everything is column A excluding "Snake" And return the value.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved