Tracker
HOME    TRACKER    Excel

# Working With Percentages

## I have a column of data with students marks ranging from zero to 78(S17:S74). I need to work out the mean score of the bottom 20% of all the scores achieved - Is this possible. I'm no expert so please keep it as simple as possible! I'm working with Windows XP and Excel 2002.

Related Forum Messages:
Working With Percentages Over Many Cells
I have 100's of cells with various formulas similar to this: =U7*9.57. U7 Being the cell with the number of hours worked and 9.57 being the hourly rate. Fairly simple so far. Now there has been a 5% pay rise so unless i get another formula to add 5% on to all these cells i will have to manualy change each hourly pay to the correct value, something i dont want to do. So my question is can i do something like =U7*9.57 then another formula to add 5% on to the 9.57, then i can copy the formula down all the other cells?????

Look Up Using Percentages
i have a figure of 395.00 euros to start and need to calculat percentages when i enter a certain figure ...

Top 10 Percentages
I am working with a list and would like to show the top 10 careers in %.

Out of 914 votes __ % are interested in Nursing, __ % are interested in ABC, ___ % DEF, etc.

Decimals To Percentages
I am trying to combine to cells containing percentages, however when I do the percentages turn into decimals. I have tried using the text funtion, but that just returns the full number 1, no decimals or percentages.

Applying Percentages
I have a table of data with names across the top and number of weeks down the left. The table lists amounts of money those names earned during the respective weeks. It looks something like this:

Mike Dan Bill Carl
400 500 600 700
800 900 1000 800
700 600 500 400

In a seperate worksheet within the same workbook, I have 3 columns of data. The first column is a name. The second column is a criteria. In the third column, I am trying to look up the value of 8 specified weeks of earnings of the name I put in column 1 and multiply those earnings by a percentage based on the criteria in column 2. Then sum the products.

I have a table of the 8 percentages I am trying to apply. There are 7 different percentage applications.

So if I am looking up Mike's earnings during those 8 specified weeks and the criteria in column 2 is "B", then I want to apply the appropriate column of percentages to those 8 looked up earnings, Multply them and then Add them.

Up until now, I have been trying to use some hybrid of HLOOKUP, SUMPRODUCT, and IF.

Remove The Percentages
I have data that I import from another source into excel and it pulls over like this

3866.00%
435.00%
125.00%
1254.00%

I want to remove the % since these aren't actually percentages, the report we pull from has them listed incorrectly and cannot be changed since it is software driven, not excel driven. The problem is simply remove the % changes the number to 38.66 instead of leaving it at 3866.

Average Percentages ...
I have a row of formulas that calculates information into a percentage. As you input info, a percentage is created in the cell. Those cells that do not yet have information entered still show " DIV/0" or something like that.

I need a formula that will average all the percentages, but the problem is, it's trying to also average the formulas with the percentages, so I currently get an error.

Formula - Percentages
Am trying to do a formula to work out a percentage of one figure from another, cannot for the life of me think it through properly!

So in

Cell J73 I have the net income and in cells J75 +J77 I have the total outgoings.

I want a formula that works out the percentage outgoings, so if someone is earning £100 and they have £20 outgoings, that is 20% of their earnings.

Calculating Percentages ...
I'm sure this will be an easy calculation for most of you...........

If I have two numbers, ie. 390 and 217, how can I calculate the difference
between the two figures as a percentage? (These two figures represent sales
in two months and I need to know the difference in percentage terms).

Calculating Percentages In XL 03
I work at a library and have been asked for help by the Asst. Director. The problem is, I have next to no Excel experience, just what I've been reading in the Help files and Online.

We are using Excel 2003 and running XP. Here is his predicament: he has an excel document that lists the books we have ordered from a publisher. Column I has the MSRP for the book and Column J has the discounted price for the book. We are trying to get Column L to show the percentage of the discount that we received. This is what i've come up with:

example for line 255 typed in as formula for L: =1-7.95/14.98

It comes out correct when I type in the formula as I show above, but when I try typing in the formula (as it should look:=1-J255/I255) , i get an error message: #VALUE! ...

Annualised Percentages
I am monitoring the balance in my Allocated Pension fund, via the WWW.

In particular, I am recording the profits (disregarding costs, outflows, etc.) as ANNUALISED PERCENTAGES (a new line, for each week).

My formula is:

=(accumulated profits/principal)*(365/elapsed days)

Questions:
Will my formula remain valid, when “elapsed days” exceed 365?

If not, is there a FUNCTION that can handle my problem. And

What would the function’s ARGUMENTS be?

Calculating Percentages
I think a really easy no brianer, I need to find the difference in percentage terms of two values. I am using =(B2-A2)/ABS(A2)

where B2 = 24.09
and A2 = 21.08

Percentages In Cells
I am using an excel loan amortization schedule but I need to add another cell to calculate percentages. how do I do this? I need to know the command.

Pivot Table - Percentages
I am trying despeartely to finish this out. Here is the deal. I created a pivot table (see attached). The issue is that I need the numbers in the red boxes to be a percentage of the total number below - so the 2 should be a percentage of the 9 (22%) and the 3 should be 100% and the 7 should be 78%. I cannot seem to get this to work. Also, there are multiple rescue groups that need this and each needs to be the % of its own total number of animals.

How To Assign Monetary Value To Percentages?
I'm brand new to this forum, so please forgive me in advance. I am hoping someone might be able to point me in the right direction. I got a request from my boss and it's something I've never done in Excel and far more advanced than anything I've tried to do.

In my spreadsheet, Columns B-BD are server names, and Rows 2-13 are program names. Inside the corresponding cells all have to display as percentages, and we are trying to display what percentage of each server is being used by each program. In Row 14, each column must total to be 100%. That part is easy, I already have that all setup.

However, the next step requires that each server is assigned a monetary value - one of two monetary values for Virtual or Physical server. Then, somehow I need Excel to calculate the monetary value for each percentage.

For example: if Column B is Virtual, and Row 14 totals up to equal 100%, it also equals \$1,000. Say Cell B4 is equal to 50% and B5 is equal to 50%, each cell is also equal to \$500. Easy enough in theory, but how should I execute this so that these cells stay in % format, but Column BE titled "Total Cost" displays the monetary value for each Program (row)?

I'm pretty sure there will be some kind of formula so I guess that's what I'm asking... how to calculate it?

I'll attach a screen shot to show you the gist of how it looks so far ...

Percentages Shown At The Top Of Columns
Columns O,P and Q should show a "Y" if Column N has the percentage (the percentages shown at the top of those three columns) over the value in column D. I hope this makes sense!

******** ******************** ************************************************************************>Microsoft Excel - Team Lead Incentive.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutF3H3N3F4H4N4=
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

Round Percentages (Up And Down) By Multiples Of 5%
How do I round percentages, both up and down, to the nearest 5%?

Ex. 82% to 80% as well as 84% to 85%

Scroll Bar To Change Percentages
I'm trying to get a scroll bar to change a percentage value. My percents are to the hundredth. I understand how to adjust the properties to get it to use whole numbers... but i am trying to adjust my smallchange by .01% and large change by .1%
is this possible? or is there a workaround for it? i've only ever used scroll bars for whole numbers.

Chart Or Graph Percentages
I need to plot percentages over time in a line graph in excel. I don't want to have to do a percentage equation in the spreadsheet, I just want excel to take two sets of values and display the percentage in the chart. For example, I need B1 as a percentage of B2 for week 1, C1 as a percentage of C2 for week 2, etc....

Pivot Table Percentages
I have chunks of raw data held in my spreadsheet and i am using pivot table to give me the final results based in the criteria selected, I now need to add another column to my pivot table to give me a percentage value from 2 values within the table- is this possible ?

(is there a way of adding a column into the table and insert a function to carry out the calculation?)

- I am looking to do it this way so that instant charts/reports can be easily made......

Macros That Were Working In Excel 2003 Are Not Working In 2007
I have a workbook in excel 2003 which I had been running the following macros (listed below). We recently upgraded to Excel 07, and neither are working. When I try to run them, the "debug" option highlights the following line in the sort macro "Range("A2:z" & lastcell).Sort key1:=.Columns(1)". This is driving me crazy, as the macros worked perfectly under the older version of Microsoft. Is there an issue with crossfunctionality between '03 and '07'.

Private Sub Worksheet_change(ByVal target As Excel.Range)
If target.Column = 1 Then
ThisRow = target.Row
startRow = 1
i = 1
Set ws = ActiveSheet
maxRow = Cells.SpecialCells(xlLastCell).Row
maxCol = Cells.SpecialCells(xlLastCell).Column
ActiveSheet.UsedRange.Interior.ColorIndex = xlNone
Do While i

PopUp Message To Display Percentages
I have 4 textboxes that will display the percentages, and i want to create a pop-up message if the 5 textboxes value doesnt add up to 100%.

Formula - Trying To Average A Column That Has Percentages
I have been working on this for days and cannot come up with a answer to this. I am trying to average a column that has percentages. some of the cells have o's in them and the numbers that I am trying to average is a weekly number. So I am trying to average every 7 days percentage. Is there a way to do this? I have looked thru the forum and all over the web and can't come up with an answer. I have excel 2003. Do I have to write a macro for this or can I just do a formula? If so how do I do it?

Data, Performing Functions, And Percentages?
I have a very large grid of data, about 400Rx200C, which contains a lot of blank fields. All of this data is currently in values from 0-100 representing percentages, but not formatted as such. I need to make all of these values into Excel Percentages so naturally used Paste Special and Divide from a field with the value 100 in it and then simply format the cells as %.

However, this fills in all of the original empty cells with a 0.000% which I do not want, I need them to stay blank. And some of the cells that do have values also have 0.000% so I cannot just delete all of these values with a VBA script. I had been hoping the Skip Blanks option would do this, but it does not unfortunately.

IF Statements, Percentages And Negative Values
I've hit a wall for the first time in my excel using career, I’ve searched the net high and low, asked the guys in my IT department and am so far stumped for a solution.

The problem is thus:

I have 3 columns, A, B and C.

Column A and B contain two numbers. Column A is "telephone calls offered" Column B is "Telephone calls Answered".

Column C is a calculation of the percentage of calls NOT answered. The formula I am using for this is =(A1-B1)/A1*1

This gives me a % as an answer.

Rows 1 to 66 are different time periods through out the day.

The problem is that for some fields, we don’t receive any calls, at all. Or we receive a call in one time period, and it is answered in another.

so Lets say cell A1 is 0, and Cell B2 is 3. Or A2 is 0 and B2 is 0.

How is it possible to get excel to display 0% if, after the calculation the value is < or = to Zero?

I have tried the below "IF" function but it returns a #Value error

=IF((A1-B1)/A*1<=0,"0%",(D67-E67)/D67*1)

I now leave it to the capable hands of the anonymous internet gods of excel

Calculate Whole Numbers To Percentages With Conditions
I wish to write an "IF" formular to express a row of numbers in the way I wish to display them in accumulative fashion. 1 upto and including 9 = 1% ...

Counting And Percentages In Multiple Sheets
i have 4 worksheets with various names. i have an 5th worksheet with a named list (TabNames) of the 4 worksheet names

each of the 4 worksheets have cells with percentages in them.

i would like to check a cell from each sheet and see if the percentage is equal to or above a certain %, for example anything equal to or above 90%. then return the number of cells that meets or exceeds that 90% criteria.

so for example

sheet1 sheet2 sheet3 sheet4
A
1 80% 91% 76% 82%
2 80% 95% 92% 43%

so checking cell A1 in list TabNames would return 1, and checking cellA2 would return 2.

Function To Calculate Averages Of Percentages
I am wondering if there is a function in excel to calculate the average of multiple percentages. Currently I rely on the following formula to achieve this result and I am curious if there is a quicker way:

Try this formula. .....

Just today I learned there is a function to calculate the compounded return (FVSCHEDULE). It does part of what I am looking to do by taking away the PRODUCT function and the array, but does not really simplify things. Using FVSCHEDULE my function would look like ....

Entered Numbers Converted To Percentages
When I open a new excel workbook and enter a number in any cell it formats it as though I am entering a percentage. So when I enter 100, the cell value becomes 1. How do i change this? I have tried formatting the cells and no change....

Find Top X Percentages With Duplicate Criteria Lookups
I have a matrix of suppliers which stores quality ratings against various service parameters. Customers then order their priorities and my intention is to then generate a report which lists the suppliers that meet their parameters.

a method of generating this report (on ClientRecommendation in the attached) which lists the top 5 suppliers under each weighted parameter, together with their scores? I realise that the answer must lie in some combination of INDEX and MATCH, but I cannot get my brain around how to generate the row numbers, as top 5 suppliers often share the same score for a particular parameter. For example, if I set up a row lookup on 80% I can so far only get one occurrence of 80% and no others.

This is probably not clear from my explanation, so I have attached the full example, from which it should be more obvious.

I have also seen a very clever VBA solution (#60695), which I think may be the neatest method, but I am not knowledgeable enough to make it work for my case.

Multiply A Number By Percentages And Round So That They Add Upto The Total %
I want to multiply a number say, 1551 by 5%, 6%, 7%, 8% and 9% and round each result to 0 decimal places. Then the sum of these results (544)should be equal to 35% of 1551 rounded to 0 decimal places (543). How do I create an if function for rounding so that the sum equals 543.

Conditional Formatting: Percentages To Have White Font If An Employee Is Deleted From Column A
The entries are made in Columns A thru C. In Columns F and G I want any value over 100% to have a red background, any value less than 100% to have regular formatting, and I'd want percentages to have white font if an employee is deleted from Column A.

Here's an example of how I have the formatting set up:
Condition 1: Formula is =\$E\$2="" --->white font
Condition 2: Cell value is >1 ---->red background
Condition 3 Cell value is </= 1 ---->normal format

Working Day Function: (Day + Next 1st Working Day)
I was looking for a final result as follows

21-Aug-09 + 1 = 24-Aug-09 (Day + next 1st working day)

21-Aug-09 + 3 = 26-Aug-09 (Day + next 3rd working day)

SUMPRODUCT Not Working For Me
what I want is quite simple actually. Worksheet 2 contains two columns where I want to search for certain text, when it finds the text in both columns (B & D) I want it to sum up the values in the same row on column F.

If I understood correctly there should be 2 ways to do this, using the SUMPRODUCT formula: ....

Working With Arrays
Below is my attempt to understand working with arrays of values.

Test() works fine. Yay! But it is "too easy" just plugging in a hard value for the range address...I don't always have that luxury. Normally I work with ranges that I've determined at runtime. I'd like to assign a range of values to an array but my attempt below -- test2() -- fails. I am not even sure if my effort is a good approach or not, but I know it doesn't work!

Basically, I am looking for how to assign the range of values to an array when I am determining the range in code -- as in:

After

Set Range = ~~

or,

Range(Cells(1,1),Cells(x,y)) ~~................

Working With NamedRanges In VBA
This might be elementary, but I cannot get it to work.

I need to name range in VBA, work with the named ranges afterwards and change the names. I have split it into e couple of questions below.

1. Naming a range
By using 'Worksheets("Ark1").Range("C4").Name = Worksheets("Ark1").Range("C3").Value' I named cell C4.
This worked fine (but it is the most appropriate method?).

2. Retrieving a name
By using 'Worksheets("Arka").Range("C4").Name' I try to retrieve the name for cell C4, but this does not work for me. In stead of the expected name I get '=Ark1!\$C\$4'.
How do I retrieve the name (in this case 'Test')?

3. Renaming a range
The next thing I need to do is rename the cell. How do I go about that?

Trim Not Working
[data] ...

I am having problems removing "2009-642" from the above text string(s) (doesn't matter which)

This is just a sample line and it is not always in the same place so I am afraid a simple mid function from a set starting point will not suffice, the number is also dynamic in size, location and leading digits.

As a result I have created a formula to get rid of the "1 XS0444499197" part of the formula leaving me with " 2009-642 "

Now unfortunately I need to get rid of the spaces (or what look like spaces) just leaving me with the number but infuriatingly I can not get the trim function to work, so I can only guess that it is not in fact reading these spaces as spaces, and I'm at a bit of a loss how to proceed.

CONCATENATE Not Working
Create a column of concatenated values to serve as a "primary key" for a compare and merge tool (Synkronizer). For some reason, the CONCATENATE function isn't being recognized.

If I enter
=CONCATENATE(A2,B2)
instead of showing the strings located in A2 and B2 it displays
=CONCATENATE(A2,B2)
in the cell.

I tried creating a new spreadsheet and it works just fine. Does anyone have an idea of what might be happening? I have compared all of the options between the two spreadsheets and don't see any difference in them.

The following is a simplified example of my problem: I have a list of product item numbers in column A. Next to each item number in column B, is a hyperlink to a PDF file relevant to each item. Elsewhere in the sheet, is a drop down box containing the item numbers. Next to the drop down box is a HYPERLINK(VLOOKUP) that fetches the relevant hyperlink depending upon the selected item in the drop down box. Problem is, when I select the ‘lookup’ link, I get an error message ‘cannot open the specified file’ (the original Hyperlink works fine). Does anyone have a solution to this problem (preferably without resorting to Visual Basic?

Sub Worksheet_SelectionChange Not Working
I have popped the code below in the worksheet and it will not work on my machine (Vista + Office 2003). However, it works fine on my colleagues machine (XP + 2003).

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column < 4 Then GoTo usevalue
On Error Resume Next 'MUST reenable events...
Application.EnableEvents = False
ActiveCell.Offset(1, 1 - Target.Column).Select
Application.EnableEvents = True
usevalue:
ActiveCell.Copy 'Put value into clipboard (marching ants)
ActiveCell.Interior.ColorIndex = 36
End Sub

I have tried different code from different web sources on different fresh files. This includes the Worksheet_Activate() function.

My macro security setting are low.

Working With Dimensions
Is there a way in excel to say if i select Item1 and it is 100mm x 30mm x 100mm, excel will say this will fit into a compartment called A1 and may also fit into a compartment called B6.

I have a list of all the compartments and what the internal dimensions are. So is it just a matter of saying if these dimensions are within those of the compartment then that item will fit in.

I have a list of some what 6000 Items that have dimensions. I may pick 200 or so of these items to fit into special compartments of a machine. Because of the varying sizes i need to know what compartment each item will fit in so i can build a machine big enough and get the right size compartments.

I have a column with hours in the following format HH:MM:SS, that looks like this:

12:16:00
1:35:00
1:35:00
12:47:00
12:46:00
12:51:00
4:33:00
4:05:00
12:54:00
3:19:00
3:19:00

I am trying to add the sum total of all hours, but its not working. I have my column formatted as time -> 37:30:55

COUNTIF Not Working
I am using the following formula to count the total number of contract types if 'ITD \$K' equals '0' zero. But it returns 0 as output.

=SUMPRODUCT('PROCUREMENT CONTRACTS'!\$E\$5:\$E\$225="GROSS")*('PROCUREMENT CONTRACTS'!\$J\$5:\$J\$225=0)

Working With Shapes
Where do I find a tutorial or examples to show me how to create bars for gantt chart in excel, based on date values?

Sendkeys Not Working
I'm trying to access one of my custom menus through a macro.

The keyboard commands are

alt, n, f

and

alt, n, g

I have these lines of
Range("A31").Select

SendKeys "%nf", True
SendKeys "%ng", True

All this seems to do is put the letters f and g in cell A31!

Get Vlookup In Vba Working
I have 3 sheets ("zip", "report", "ches") in a workbook

I want "ches" column A to be filled with data from "report" column D if there is a match of "zip" cell A12 from "report" column S

I keep getting the error
"unable to get the Vlookup property of the WorksheetFunction class"

Private Sub Worksheet_Change(ByVal Target As Range)

Dim myRange As Range
Dim myRange1 As Range

Set myRange = ActiveWorkbook.Worksheets("report").Range("A1:S65536")
Set myRange1 = ActiveWorkbook.Worksheets("ches").Range("a65536").End(xlUp).Offset(1, 0)

myRange1.Value = Application.WorksheetFunction.VLookup(ActiveWorkbook.Worksheets("zip").Range("a12"), myRange, 4)
End Sub

Vlookup Not Working
I have a vlookup that returns an #N/A error due to the table array originally being formatted as text. The data is simply a two or three digit number.

I have tried everything I can think of to get the table array to equal the lookup value.

I formated cell to number. I tried tab delimated/finish. I tried typing a 1 in a different cell and doing a paste special then multiply. I tried copying to a different worksheet. I just cannot get it to work.

VBA Function Not Working
I copied this function from a VBA book and I get a Error 91 "object variable or with Block variable not set"

I have made sure that Microsoft scripting is referenced.
any clues would be appreciated.
I might add that this is a follow up on a thread I discussed with "Datasmart", thanks to John for getting me started.

{code]
Function BrowseForfolderShell() As String
Dim objshell As Object, objfolder As Object
Set obshell = CreateObject("Shell.Application")
'Uncomment next line to start at desktop
'Set objfolder = objshell.BrowseForFolder(0, "Please Select a Folder", 0, 0)
Set objfolder = objshell.BrowseForFolder(0, "Please select a Folder", 0, "c:")
If (Not objfolder Is Nothing) Then

What Row Is Code Working On
I'm using Excel 2007.

Is it possible to know which row code is active on whilst it is running?

s/s is 332324 rows and growing. When I run code which goes down one column and takes quite some time I don't know what stage it is at.

I'd like to be able to see on screen which row it is down to.

Not Sure Why CRLF Not Working
This should simply insert a linebreak correct? Cannot figure out why the following is not working :

UpdateFX = MsgBox("Update the current FX rates" & @CRLF & _
"[x-rates.com 120 day history]", 65, "FX Rate Update")