I need to do the following calculation:

((1-((1-AE5)*10))*V14)

but only when:

((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5

If greater than or = to V14*1.5 then =V14*1.5
And if less than or = 0 then =0 0  Utf
4/19/2010 1:56:01 AM excel.misc  78881 articles. 5 followers. 3 Replies 760 Views Similar Articles

[PageSpeed] 54

=IF(AND(CALC>=0,CALC<=v14*1.5),CALC,IF(CALC<0,0,CALC))

Your last statement is confusing. "And if less than or = 0 then =0"...equal
to zero is mentioned in the 1st condition..So this should be 'less than' .

--
Jacob (MVP - Excel)

"Eves" wrote:

> I need to do the following calculation:
>
> ((1-((1-AE5)*10))*V14)
>
> but only when:
>
> ((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5
>
> If greater than or = to V14*1.5 then =V14*1.5
> And if less than or = 0 then =0
>
> 0  Utf
4/19/2010 2:08:01 AM
"Eves" wrote:
> ((1-((1-AE5)*10))*V14)
> but only when:
> ((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5
> If greater than or = to V14*1.5 then =V14*1.5
> And if less than or = 0 then =0

I think the following does what you want:

=max(0, min(V14*1.5,(1-(1-AE5)*10)*V14))

Note that it can be simplified to:

=max(0, V14*min(1.5,10*AE5-9))

I discovered that the two formulas are infinitesimally different in some
cases, due to floating-point computation anomalies.  But in fact, I think the
second formula is closer to the expected behavior.

Based on your constraints, we expect 1.5*VE14 when AE5>=1.05 (and VE14>0),
and we expect zero when AE5<=0.9 (or VE14<=0).

----- original message -----

"Eves" wrote:
> I need to do the following calculation:
>
> ((1-((1-AE5)*10))*V14)
>
> but only when:
>
> ((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5
>
> If greater than or = to V14*1.5 then =V14*1.5
> And if less than or = 0 then =0
>
> 0  Utf
4/19/2010 3:11:01 AM
Errata (typo)....

I wrote:
> Based on your constraints, we expect 1.5*VE14 when AE5>=1.05
> (and VE14>0), and we expect zero when AE5<=0.9 (or VE14<=0).

Obviously, I meant:  we expect 1.5*V14 when AE5>=1.05 (and V14>0), and we
expect zero when AE5<=0.9 (or V14<=0).

----- original message -----

"Joe User" <joeu2004> wrote in message
news:82AE4C4E-C651-455E-96C5-7802F10CB672@microsoft.com...
> "Eves" wrote:
>> ((1-((1-AE5)*10))*V14)
>> but only when:
>> ((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5
>> If greater than or = to V14*1.5 then =V14*1.5
>> And if less than or = 0 then =0
>
> I think the following does what you want:
>
> =max(0, min(V14*1.5,(1-(1-AE5)*10)*V14))
>
> Note that it can be simplified to:
>
> =max(0, V14*min(1.5,10*AE5-9))
>
> I discovered that the two formulas are infinitesimally different in some
> cases, due to floating-point computation anomalies.  But in fact, I think
> the
> second formula is closer to the expected behavior.
>
> Based on your constraints, we expect 1.5*VE14 when AE5>=1.05 (and VE14>0),
> and we expect zero when AE5<=0.9 (or VE14<=0).
>
>
> ----- original message -----
>
> "Eves" wrote:
>> I need to do the following calculation:
>>
>> ((1-((1-AE5)*10))*V14)
>>
>> but only when:
>>
>> ((1-((1-AE5)*10))*V14)>=0 or <=V14*1.5
>>
>> If greater than or = to V14*1.5 then =V14*1.5
>> And if less than or = 0 then =0
>>
>> 0  Joe
4/19/2010 8:41:51 AM Similar Artilces:

HELP WITH FORMULA #15
I have 3 columns. C -I=J These columns are continuous and I keep adding amounts to cells in column C and deducting amounts from I column and need to end up with a total in column J. Could someone please help me with a formula that will continually give me a total to column J as I enter information into column C and deducting from column I. -- Thank you in advance for your assistance HankL =SUM(J1:J100) Adjust range of cells to your need....... Vaya con Dios, Chuck, CABGx3 "Hank Laskin" wrote: > I have 3 columns. > C -I=J > These columns are continuous and I ...

Using a formula to fill a field
I am ery new to Access and was wondering, is there anyway to make a field fill automaticaly with a formula? Like in excel for example if you have a fromula on a cell and the arguments change the cell changes. I have a table with a field of invoice amounts and then a table with account info, i want to know if there is a way for the account table (ie: Balance field) to update automaticaly when you add an invoice with that accountID. Access is a relational database. An Access table may look like a spreadsheet, but it is really just a "bucket o' data". No, you can't ad...

Formula needed 01-22-10
Hi I need a formula that will look in one column range for a certain value and for another value in another column range and when they are both found in the same row, will count the number of occurances. Help!!!! Krissy wrote: > Hi > I need a formula that will look in one column range for a certain value and > for another value in another column range and when they are both found in the > same row, will count the number of occurances. Help!!!! http://www.contextures.com/xlFunctions01.html#SumProduct Omit the "values to be summed". =SUMPRODUCT(--(A2...

VBA to select formula cells OK -but want certain cells with ColorI
Using XL 2003 & 97 The following subroutine works. That said, how can I fine formula cells with a "!" in the cell. (In short, probably a cell formula referring to another sheet) With the following code I would like all formula cells set to colorindex 6 (yellow) but all formula cells with "!" set to a color index of 3 (red) I tried to use an If statement but to no avail. Sub SelectFormulaColor() Selection.SpecialCells(xlCellTypeFormulas, 23).Select With Selection.Interior .ColorIndex = 6 .Pattern = xlSolid End With ActiveWindow.Dis...

Numeric content in one cell ( implicit formula ) and the result in another one
Hi, I made some search before, but too much information at the same time. So I post this question: In cell D2 , I have the following content : 10002/(14971213 - 37375) /1000000) In cell E2, I would like to have the result value of data in cell D2 : 669,754 I would not work with "left...len... search... right.." as the format ( then formula ) in cell D2 may change. Is there a function giving the computed result of a cell and put the result in another one? Best regards Pierre In cell E2, will the formula "=D2" do it for you? Or is that too simplistic and I don'...

Trouble Restoring Backup of Money 2002 to 2004
Let's continue the conversation on restoring backups a little bit. My HD crashed so I decided to upgrade to Money 2004 on the new disk. But now I can't restore my old data that goes back years. When I double click on the old mny or mbf files Money 2004 locks after trying to convert for a few seconds. Even the floppy backup I had will not work becuase the floopy can't be read for some reason. Am I screwed? Your thoughts are valued! Bob Can you copy the backup floppy to your hard disk? Try that and then try restoring from there. -- Regards Bob Peel, Microsoft MVP -...

Trouble shutting down
I am trying to figure out why my computer (XP/SP3) seems to have trouble shutting down from time to time. Several days ago I shut it down. Or thought I did. Obviously I was in a hurry and did not sit watching it for the usual long time the shut down usually takes. Came back to restart it today and at first I thought it had read my mind and started up on its own. Then I realized it had never finished shutting down. Apparently a program was not responding and Windows was asking me what did I want to do? A question like this is probably even more inane of the things Windows ma...

Trouble with Access Prompts
Weird stuff going on in one of my databases. When I run an update or delete query, usually it asks me if I'm sure I want to update xxxx records. Now it just does it. Also, if I create a query, then decide I don't want to save it, if I try to close the window or all of Access, it doesn't give me the "Exit without saving? Yes/No/Cancel" dialog, it REQUIRES me to name/save my unsaved query. How do I fix this? I don't know much about Access, so detailed instructions are appreciated. Thanks! In Access 2000 you turn the warnings on by ticking the boxes in the TOOLS-OP...

what does it mean -- in formulas
what does this -- sign do in formulas -- Nawaz5 ----------------------------------------------------------------------- Nawaz50's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=3393 View this thread: http://www.excelforum.com/showthread.php?threadid=53714 See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed explanation. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Nawaz50" <Nawaz50.26yzbm_1146219908.114@excelforum-nospam.com> wrote in message news:Nawaz50.26yzbm_1146219908.114@excelforum-nosp...

Formula For Monthly Date
Hello, I have a worksheet that has products listed that are on sale at different times of the year. My question is what formula to use to get all Jan products,codes,prices etc on to new worksheet, Feb on another worksheet etc. Thanks Mare Use Autofilter. See: http://www.contextures.com/xlautofilter01.html -- Gary's Student "Mare" wrote: > Hello, > I have a worksheet that has products listed that are on sale at different > times of the year. My question is what formula to use to get all Jan > products,codes,prices etc on to new worksheet, Feb on another works...

formula question #7
Is there a formula that can change the color of cells if revenues drop three months in a row and if so what should the formula be? Hi, Assuming that your data is in row 1, columns A,B,C, with C being the latest data, Try using conditional formatting in cell C1 with the "Formula Is" =IF(AND(C1<B1,B1<A1),1,0) HTH >-----Original Message----- >Is there a formula that can change the color of cells if >revenues drop three months in a row and if so what should >the formula be? >. > Formula only needs =AND(D1<C1,C1<B1,B1<A1) you don't need t...

"IF" Formulae
I'm trying to create a formula causing one of three answers. The object being any one of 0, 1 or >1. I need 0 an >1 to answer "years" and 1 to answer "year". My efforts below. =IF(G8>1,"years","year")*IF(G8<1,"years") My problem is that I can't override the first false conclusion. Any suggestions? Seems to me that you really only have two options (1 or Not 1). Try this: =if(G8=1,"year","years") HTH, Elkar "Libby" wrote: > I'm trying to create a formula causing one of three ...

day of the week and date formula
Hello I am looking to write a formula that gives me the difference in hours between a logged date and time and a closed date and time eg -27/11/2009 09:23:26 and 30/11/2009 10:34:20. Once I have this I need to calculate the working hours used to resolve the issue. If the duration of the time includes a weekend, a saturday would equate to 4 hours working and a sunday would be 0 hours working time, a week day equates to 11.5 hours working. Any suggestions?? Thanks -- Sarah Hi, we need to know what hours during any day are considered working - ie, do all hours...

What formula to use?
I have a list of teams in column B. In a tab called Division I have 6 division names with the teams listed in their respective division. I want column C to enter the appropriate division name for the division the team is in. For example, I want column C to be labelled as AL EAST when column B has BOS in it. How do I do this? Thank you. =INDEX(Division!A:A,MATCH(B1,Division!B:B,0)) etc. -- HTH RP (remove nothere from the email address if mailing direct) "Jambruins" <Jambruins@discussions.microsoft.com> wrote in message news:3100394C-BF57-470D-A218-BCA9C85D8D54@mi...

(Advance Programming) Parameter Returned as Value
Hi, I wish some body could Help Me, I have being loocking for a solution for 2 days. I need to make a simple Query to check if the parameter values are in a Table. I want the Query to return "Founds" and "Not Founds". For Example: Table Definition: TName CREATE TABLE [dbo].[TName] ( [IdName] [bigint] IDENTITY (0, 1) NOT NULL , [Name] [nvarchar] (30) COLLATE Traditional_Spanish_CI_AS NOT NULL ) ON [PRIMARY] Values: Insert Into TName (Name) Values ('Paul') Insert Into TName (Name) Values ('Peter') Insert Into TName (Name) Valu...

Formula help #12
Hi All, I'm trying to create a formula but can't work it out. We've decided that were going to class each month from the 20th to the 21st, rather than the 1st of the 1st. So 21/05/05 to 20/06/05 (dd/mm/yy) will all be classed as May, and from 21/06/05 it will be classed as June. I have a list of dates and would like a formula in the column next to it that will work out what month were classing the date in and put the month in an MMM format .i.e May So (dd/mm/yy) (mm) 21/05/05 May 22/05/05 May 20/06/05 May 21/06/05 June 30/06/05 June 21/07/05 Aug I should be able t...

Inserting space in between formulas
I put in a formula to combine a string of words with numbers and would like a space or dash to go in between. How do I do this? =A1 & " " & B1 or =A1 & " - " & B1 Where, A1 = First part of text (or numbers) B1 = Second part of text (or numbers) Substitute A1 / B1 with the relevant cells in your spreadsheet "Mary" wrote: > I put in a formula to combine a string of words with numbers and would like a > space or dash to go in between. How do I do this? Thanks, that worked great! Now I want to delete the column that references that...

Logical formulas
I think I got this in the wrong Discussion group. I put it General Discussion before but I think it belongs here. Original Message below: I must admit. I am horrible at logical functions. I am trying to compose a formula that will return a value of "1" if number is greater than 1, less than 4, greater than 949, and less than 991. Here is what I have now but it is not working: =IF(AND(G7>0,G7<4,G7>949,G7<991),1,0) Any help would be awesome! -- -CRM Try this: =IF(OR(AND(G7>0,G7<4),AND(G7>949,G7<991)),1,0) Does that help? ------------------------...

Help with copying formula
Hi I run Excel 2K I have typed the following formulas in three consecutive cells. =SUM('DRO BY SHIFT'!Z10:Z12)+BP10 =SUM('DRO BY SHIFT'!Z13:Z15)+BP11 =SUM('DRO BY SHIFT'!Z16:Z18)+BP12 You will note that the Z colum ranges take in 3 cells each time. The problem is that when I drag or copy these formulas down the column I dont get the reltive ranges that I need. That is the next one down should read =SUM('DRO BY SHIFT'!Z19:Z21)+BP13 However I get =SUM('DRO BY SHIFT'!Z17:Z19)+BP13 How can I write the formula so that when I drag it down it maintai...

Text and Formula in the Same Cell
Good Morning, Everyone - Here's what I'm trying to do: I have a cell that has text - "Vendo Name" - and I also want that cell to contain a formula (counta). I this possible? Thankx, C -- theboatdud ----------------------------------------------------------------------- theboatdude's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1024 View this thread: http://www.excelforum.com/showthread.php?threadid=27525 Here's an example: ="Vendor Name: "&COUNTA(B:B) HTH Jason Atlanta, GA >-----Original Message----- > >Goo...

What is procedure to exit formula auditing mode?
Please advise. Thanks, Doug To remove the arrows ? <Alt> <T> <U> <A> Not really a shortcut though. -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "W8" <W8@discussions.microsoft.com> wrote in message news:99B64142-8037-43F4-BDB1-AF7170EF54EC@microsoft.com... Please advise. Thanks, Doug Type Ctrl+` (Grave Accent) to toggle formula auditing mode on/off or go to Tools>Formula Auditing>Formula Auditing Mode. HTH |:&g...

array formula Excel 97 (Poker)
Cells A1:A7 each contain a random integer from 1 to 13, with possibl repetitions. I have been trying to create a single formula that will test, for cel A1, for the presence of each of the next lowest four numbers in th range A!:A7 So if A1 contains 9, I would like the formula to return 1 if and onl if 8,7,6,and 5 all occur in the range somewhere, and return otherwise. This is tantamount to testing whether seven cards contain a five car straight headed by the card in A1. I just can't get the right combination of array or sumproduct to d it. I just know ther must be one........... Bil...

copying formulas #3
This is probably a simple question for most of you, but I have an exce file that contains approx. 400 sheets, with a summary sheet. How do copy a simple formula to read Cell B1, but the next sheet needs to rea Cell B2 and so on. Example: Sheet #1 is the summary, then sheets 2-40 have a title taken from the summary, so if I do a typical copy formula it keeps reading Cell B1. Hope my question is clear!!! Thanks -- Ladkin ----------------------------------------------------------------------- Ladkins's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=3252 View t...