Divide 2 Cells & Express Result As Percentage
Oct 6, 2006I need to divide Cell "A" with Cell "B" and put have the final sum in Cell C. e.g. Cell A===10 Cell B=2 Therefore, I want Cell C to say 5
View 6 RepliesI need to divide Cell "A" with Cell "B" and put have the final sum in Cell C. e.g. Cell A===10 Cell B=2 Therefore, I want Cell C to say 5
View 6 RepliesI would like to use vba to copy a value in F31 to B5 in sheets("2") and express it as a percentage.
For example, the value in F31, 102 is copied to B5 as 102. Like to have it express as 102%.
Sheets("S1").Select
Range("F31").Select
Selection.Copy
Windows("Report.xls").Activate
Sheets("2").Select
Range("B5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
I have a simple formula that adds two numbers and divide the result by another number
K1: SUM(E1,F1) / H1
K2: SUM(E2,F2) / H2
K3: SUM(E3,F3) / H3
K4: SUM(E4,F4) / H4
K5: SUM(E5,F5) / H5
etc, etc
and then I average the results
AVERAGE(K1:K5)
etc, etc
When H1, H2, H3, etc is 0, it generates a #DIV/0! (since you cannot divide by 0)
I want a formula that I everytime a H1, H2, H3, etc is 0, I want to set it to a specific number H1, H2, H3, etc to 15.00
For example:
IF (H1 = 0, 15.00, sum(E1,F1) / H1)
If the number provided (H1) is 0, set it to 15.00, otherwise add the two numbers (E1, F1), and divide this result by the number provided (H1)
But this is where the problem is:
In every single cell that I have NOT yet provided information, it treats the BLANK cells as if it was 0, and has set every single cell to 15.00.
I'm attempting to do the following:
A1 contains names of projects.
B1 contains variances from budgets, being positive or negative numbers.
C1 will contain results.
I need to know which of the B1 cells contain a number equal to or greater than 20%/-20% and output the names in A1 that match the criteria to C3.
I have two sets of data to compare. One is real world data, the other is forecasted data. I have real daily data for every day over about 3 months. The predictions though, there may be 4-6 predictions for ever one real daily value.
What I'd like to do is have a function that looks at Column A's date (real daily value) and Column C's date (predicted data) and if Column C equals Column A, then divide corresponding data in Column B by value in Column D.
If I have a value of lets say 53, I need it broken down into equal and whole numbers across the spread sheet with the last one being the remaining value.
Currently for example in cell F5 I have a value of 41 that I need to break down so
I have done the following:
In Cell P5 =IF(F5>=25,F5-21,F5)
Then in Cell Z5 =IF(P5>=25,P5-21,P5) and this goes on until I have zero value from the original value in the last cell can i not do this all in one formula and have the results populate in other cells.
I have just started to try and learn VBA for excel. the resource I have been using are books and the WEB. Some how, not sure how there was/is some code where all enteries in all worksheets are divided by 100, i.e if I enter 2222 after clicking the enter button the result in the cell is 22.22. I have deleted all macros and code however the problem still exist.
View 3 Replies View RelatedI really struggle with the following scenario:
A1=5 B1=4 C1=0 D1=0 E1=5
What I want to do is to divide the sum of those cells with the number of cells with a value > 0 (but all cells must be controlled to check if the value > 0).
In real life it's easy to see that I want to do 14/3 (A1>0, B1>0 and E1>0 equals three cells), but how to write this formula in Excel?
How to divide two cells if there is no text in the first?
i.e.: if there is text display a 0 and if there is a number to divide it with a second number in another cell.
I am trying to divide the total of two groups of cells and I used the following formula:
=sum(B3:M3)/(B17:M17)
However, that is not a correct formula.
Fallowed EXCEL instruction, for >DIVIDE TEXT ACROSS CELS< but result is not what it should be.
1, I select . >FIXED WIDTH< Than I create ONE !! >BREAK LINE<
2, click NEXT / FINISH.
3, MY text is split but not to two column but to MANY COLUMNS?
Repeat many times, always careful that ONLY ONE break line selected.
Also when I first select. >FIXED WIDTH< and click next.
My text is already market with many >BREAK LINES< so I have to first
delete all, seems to me strange.
i want to divide two cells from different sheets using a macro
i have this at the moment
='Cost Sheet A'!$L138/'Cost Sheet A'!$AD155
and have gathered that i can divide 2 cells that are in the same sheet using macros
but i want to link to two different sheets using a macro
I am trying to add 2 groups of cells and then divide the number by 60?
I can't get it to divide? It will only total.
=SUM(T807:T832)+SUM(T837:T846)/60
i want to divide eg. >53/>12 but i get #value! error. i have huge columns full of is so i dont wanna so 53/12 kinda thing 1000 times. whats the formula i need to use?
View 6 Replies View RelatedI have attached a sheet as an example, as i am trying to Divide a cell by the number of populated cells in that column e.g column (A) has a table of 16 but only has 13 populated cells in that column, the sum would be something like this =sum(A18/13. Sometimes the column will have less and at times more populated.
test sum skip blank cells.xlsx‎
I have a 52 (one for each week) page workbook. I am trying to average cell J9 for the entire 52 pages. However the information is not added to the cell until the end of the week so week 30-52 all have 0s and should not be counted in the dividing number. Is there a way to have Excel count the number of cells that have a number (not 0) and divide the sum of the cells but that number.
=(WK1!J9+.....WK52!J9) / (counted number of cells not = 0)
I'm trying to make a shift schedule template, and it's all done except that i cant sum the hours the way I think i should be able to.
I've attached the file for reference.
I've added in some hours for myself as an example. I have 47.5 hours in the week. I've got 3 Rows, In Out and Hours. I've formatted the In and Out the way i want them, but I would like the Hours row formatted as a decimal, so that 7 hours 30 minutes would show up as 7.5.
I'm also having trouble with the totals column at the end. Although D8:J8 total 47.5 hours, it's adding them as 23:30.
=SUM(B10:G10)....answer is 245 minutes
How do I express this in hrs and minutes, 4hrs 5 mins.
Then I need to * this by an hourly rate to get a salary figure.
Could anyone guide me how to express symbols & signs in VBA , LIKE ....
View 6 Replies View RelatedI have data that i download and I want to label A1 with last fridays date, i have tried =today()-3 but if i start my week on tuesday it will reflect sat date.
any vb code to express the date last friday no matter what day i download the data?
I am trying to use a macro to email a recipient. I only want the active sheet in a workbook to be sent. I am using outlook express.
View 10 Replies View RelatedI need to calculate the percentage of cells in one column that have data in them compared to those that do not. This is easy enough to do by itself but here's where it gets tricky for me. I need this percentage calculated only when cells in a different column contain data.
Here's the specifics. All of the row and column references are exactly what I'm looking to have in my worksheet. If A5:A200 contain any value then I want to know the % of the cells in F5:F200 that have a value in them compared to the same number in F5:F200 that contain no value. I would like the answer to show up in B2.
Part of the issue is that cells A5:A200 already have a formula in them so I think that would count as a value. The one thing that might help is the fact that A5:A200 values that I'm looking for ALWAYS start with TN so that could be used as the search function. The reason why I need to base it on a value in A5:A200 is that the sheet is blank until I enter data in the rows. I can't have the blank rows below the last data that I've entered on the sheet count towards the percentage that I'm looking for.
Basically it's a sheet that I enter installations and service calls on. The information always has a TN# associated with it. Which through a formula is automatically populated in the same row in the A column. I track the installation or service call and when it's completed I enter a completion date in the F column in the same row.
I am trying to be able to keep track of the percentage of jobs completed (completion date entered in column F) compared to incomplete (cells in column F that have no completion date) but it has to only look at rows that actually have information entered in them which I think should be done by column A. column D5:D200 is where I enter the main information and there is no formula entered in the cells in column D so if it's easier to base it on that column then that's fine.
i have a price list that I need to upgrade I will show how it is set now and what I need to do.
A1 B1 C1 D1 E1
=E1*1.25 59.99
Result $74.99
when i try to make E1 to a furmula (=E1+10%) it dose not work!!!
I need to add 10% to E1 so A1 is incresed 10% how do I do That
by the way I have much more cells than A1 it gose down to A123 and that is only page one.
in A1 I have 57 in B1 I have 75 so if I calculate percentage between those two I should get somewhere around 5% instead I'm getting 76%,
what am I doing wrong, in C1 I have =A1/B1 and then formated under percentage.
Formula "(Cell-Cell)/ABS(Cell)"
When calculating percentage difference do I always subtract the smaller number/cell from the larger number/cell, then divide by the smaller number/cell or vice versa? Maybe I am over thinking it, but it is confusing the heck out of me
I provided an example below to illustrate a spreadsheet I work on. The numbers go up and down. I want to know how I should go about setting up the formula. If I need to ensure the smaller number is always subtracted from the bigger number, it will require a lot of manual intervention on my part.
Row 3 is =(b2-b1)/ABS(b1)Row 4 is =(b2-b1)/ABS(b2)Row 5 is custom. I went through each cell and made sure the smaller number was being subtracted from the larger number, then divided by the smaller number
PercDiffExample.xlsx
1st Quarter Goal23306.67%
2nd Quarter Goal00.00%
3rd Quarter Goal00.00%
4th Quarter Goal00.00%
The 306% cell has (B2+B3+B4)/7.5 in it to get that value. I need to dump any access percentage above 100% into the next quarters goal. so 2nd should be 100 and 3rd should be 100 and 4th should be 6.67.
I hope my title was clear enough, but I’m not sure how to set this up. I have numbers in cells B4 and B13. I want to take the largest of these two numbers and multiply it by 0.85. I then want to take this number and compare it to a number in cell B23. If B23 is greater than the larger of B4 and B13 X 0.85, I want B33 to display “No” in a boldfaced red font. If B23 is less than the larger of B4 and B13 X 0.85, I want B33 to display “Yes” in a normal black font. This formula will be in cell B33.
View 5 Replies View RelatedI am trying to apply conditional formatting to multiple columns based on a percentage varience of the value in the first cell of each column. I'm sure this is not a new concept however I have been unable to find any advice when searching. I have attached an example of my problem as a picture speaks a thousand lines of code.
View 8 Replies View RelatedI am trying to add 2 cell values together then show the total as a % of a value in a 3rd cell, however I also need it to allow for 0 values in the chosen cells without displaying an error message or it messes up the average formula elsewhere on the sheet?
View 2 Replies View RelatedIs it possible through a macro that the cells where numbers is in percentage format should not show any decimal points (is should not roundoff) just decimal points should not visible. I am aware that this can be done by "decrease decimal" but data will be across thousand of rows manually it will be very time consuming.
I have attached a sample worksheet : Percent.xlsx