And/if/or Forumula

Aug 13, 2008

actual revenue planned revenue
5 4 125%
3 4 75%
-5 -3 -66%
-3 -5 60%

I need to get to those percentages (or close) the tricky part is when the numbers become negative. the forumla is actual revenue over planned revenue. If the actual revenue is below 0 and less than the planned revenue number than the attainment % should be a negative. However, if the actual revenue is below 0, BUT LESS THAN PLANNED revenue the percentage than becomes positive.

View 9 Replies


ADVERTISEMENT

Rank If Forumula

Feb 4, 2009

Trying to figure out how to write a formula to rank values in B if the values in A are the same? I tried rank(if(A2:A17=A2,B2:B17))but this did not seem to work.

View 9 Replies View Related

Replace A Forumula With A Vb Function

Jul 6, 2009

I've always used event driven functions - ie. user clicks a button and my function gets called.

What I want to do now is replace a HUGE formula that is impossible to debug with a function. So the idea is, any time the user changes any cell, the function should be called and update a certain cell with a new value.

View 9 Replies View Related

Use Forumula As Criteria For Sumifs?

Nov 22, 2008

I'm trying to sort out an accounts receivable ageing into various age categories For example, for a customer with 3 months credit term, i've used the formula =SUMIFS($C3:$AA3,$C$1:$AA$1,">=4",$C$1:$AA$1,"<=9") to sum up amounts that are 1 to 6 months past due. For the next age category 7 to 12 months past due i've used =SUMIFS($C3:$AA3,$C$1:$AA$1,">=10",$C$1:$AA$1,"<=15").

As my customers have different credit terms (30 days, 60 days etc), i've to adjust the above formula accordingly e.g. instead of ">=4", I'll have to change the criterion to ">=7". This is time consuming as i've got a long customer list.

View 2 Replies View Related

Adding A Condition To An IF And Vlookup Forumula

Aug 28, 2009

Title: How do I add a condition to an IF and Vlookup Formula:

I need to edit a formula to include a condition. I attached an excel file for ease of explaining the problem. I want to say if $E$5 has “A to B” then F5 will automatically have BOR, but if E5 has anything else then the Vlookup formula applies.

I was thinking something along this formula:
=IF(AND($E$5<>”A to B”,ISBLANK($B5),"",VLOOKUP($B5,'Drop Down'!$D$1:$E$500,2,FALSE)))

I know I need to add “BOR” in the formula above somewhere
Where am I going wrong?

View 2 Replies View Related

Format Date With Other Text In Same Forumula

Feb 12, 2010

I am trying to display both text and a date in the same line. Currently I have something like ="The Date Is " & A1. where A1 is a cell with a date formatted in a preferred format. However, once I call reference to the cell, excel re-formats it into the serial date, so it displays something like. The Date Is 40220

instead of something like: The Date is 2/11/2010. Does anyone know how to format the number back into a date form? Just going through the format menus and setting it to date does not change it.

View 2 Replies View Related

Bold On Copying Cells Which Has A Forumula

Oct 17, 2008

when he copies some data across a worksheet - the new data has a bold format, so he has to unbold everytime.

I can't see any obvious reason why this is happening.

View 9 Replies View Related

Modify Array Forumula And Preserve Brackets

Dec 11, 2008

How would I modify a (very long) array formula, while preserving the brackets? Or re-creating them? I've tried doing it "at the cell" without luck.

View 2 Replies View Related

Forumula To Total Items In Multiple Rows

Jul 31, 2009

I have ~500 rows of data in columns A, B, C that is as follows, for example:.............

I am having trouble with coming up with a formula that will add up the total items shipped for each item. For example, Apples = 62 items shipped.

View 2 Replies View Related

Runtime Error 1004 :: User Create Forumula In A Combo Box

May 7, 2007

The app. that I have been developing requires the user to create a formula in a combobox in a userform that I have setup for them.

They have a list of variables that they can choose from, which they are allowed to use in their formula creation.

A typical formula may look like this:

=SUM(25*DistFromBack) where DistFromBack = 4

I then take their formula and place it out on the sheet which returns me a value of (in this case) 100.

Now this works fine until someone wrote a formula that looked like this:

=SUM((25*DistFromBack)

Now with the double brackets at the front it creates a formula that Excel cant deal with and gives me a 'Runtime error 1004'.

I have tried to trap this error (On Error Goto .....) but unsucessful.

I would really like to have a check when the user types an erronous formula, but dont really know how to go about it.

View 13 Replies View Related

Macro To Print Active Area Excluding Cells With Forumula That Doesn't Return Value

Dec 20, 2007

Trying to put together a macro that looks down active sheet for all cells that contain a value, sets a print area and then prints !

Is this possible?

FYG, I have a column that run from 3 - 2000, which contains a formula, which may produce a value depending on corresponding cells.

I used this code from a post on a similar topic, but excel is complaining code
in bold

Private Sub Print_Area_Click()
Dim lastCell As Range
Set lastCell = Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 0)
Do Until Application.Count(lastCell.EntireRow) 0
Set lastCell = lastCell.Offset(-1, 0)
Loop
ActiveSheet.PageSetup.PrintArea = Range(Cells(1, 1), lastCell).Address
End Sub

View 9 Replies View Related







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