# Formula Not Adding Correctly, Calculate The Results Based Off Of What Is Shown In The Cell

Apr 9, 2009

Basically a cell might have a number with 3 decimal places

For Example 90.554, and i will format the cell two 2 decimal places. But when i use those cells which are formated to 2 decimal places in a formula it produces results based of all the decimal places in that cell.

Is there a way for the formula to only calculate the results based off of what is shown in the cell? . This is messing up our accounting area by alot of dollars since we sell many items.

I included an example of what i mean in this excel file which should clear up any confusion.

## Mega Formula To Calculate Results Based On Several Conditions

Aug 25, 2009

I have in column A a list of investment fund names. In columns B to D is respectively for each fund its Market Value, the Rate of Return and the Rank (1, 2, 3 or 4). I am trying to create a formula that will calculate the market value-weighted rate of return for each ranking.

For example, the 3 funds that rank first have market value weights of 10%, 12% and 13%, and rates of return of 1%, -3% and 5%. The total market-value weighted return for the top-ranked funds would therefore be 0.39% (i.e. 0.10*0.01-0.12*0.03+0.13*0.05)

The formula would first need to look in the ranking column to identify those funds with a particular rank (column D), then calculate their weights by dividing their market value by the total market value of all funds (column B), and finally multiplying these weights by the rate of return (column C), before summing the results to say, for example, that the total market-value weighted return for the top-ranked funds is 0.39%

## Formula To Show A Date Range Based On The Amount Shown In Another Cell

Sep 11, 2009

Attached is a excel file that has a working formula for tracking cashier variances. I edited out names etc.

I added a new cell called Track Back on the employee search sheet.

What I want to do is only show variances for the amount of days back selected in the Track Back cell.

For example if I select the last 30 days, only the last 30 days would show up below in the sheet.

I am not sure if this is even possible based on the forumla that is already on the sheet. I couldn't figure out a way of doing it. But there are a lot of people on here much better with excel than me

## Display The Results Shown When Using The Filter

Aug 4, 2006

how to make a formula to only display the results shown when using the filter..........

## Macro That Locks Down Cells Based On A What Is Shown In Another Cell

Jan 4, 2008

I have a workbook with several sheets, but just on the sheet called “sales” I need a macro to do the following:

If F4 = CST
Then Lock down H4-S4 and AM4-AZ4

But if F4 is changed to something else I need H4-S4 and AM4-AZ4 to be unlocked

Is a password necessary for this? It is ou

I just want it to lock and unlock, not protect and unprotect.

## Calculate Ranking Based On Results Of 2 Columns

Nov 4, 2008

I have a speadsheet that has a table containing scores of audits, in the last 3 columns of the tabe I have the two totals (columns AC and AD)

In Column "AF" I wish to show where they will rank based on the results, first I need to rank via the result of column AD and if that is the same as another result use column AC to determine where they rank.

## Calculate Shown In Statusbar

May 24, 2007

I have the word 'calculate' shown in the bottom grey bar of the screen. I think this may be affecting my Excel spreadsheet.

## Adding Formula To Macro Based On Moving Cell?

Jan 14, 2013

I am having difficulty expressing a formula so that if a cell is greater than zero, it adds the value of that cell to a String figure. I have got as far as the following, the 'problem' area is in red.

Sub Share_Sales3()
Dim Prompt As String
Dim Caption As String

[Code].....

## Calculate Results Into Thirds Similar To Quartile Formula?

Oct 8, 2013

Just curious to know of any other formulas similar to the "quartile" function that allow you to calculate results in thirds (plus any other if known)

## Calculate Formula Based On Cell Criteria

Aug 30, 2006

I only want the formula to operate when there are values to calculate and then ONLY refer back to the last calculation. If there are gaps between the calculations I would like those to remain blank. Is that possible?
I have attached an example of what I am trying to do.

## Formula Required To Calculate Points For Football Results Prediction

Aug 2, 2009

I'm creating an (English) football predictions competition for me and my family.

One problem that has stumped me is how to get the scores based on the 'home' & 'away' score predictions.

The rules are: If I predict the correct exact result I get 3 points. I want to add another 'rule' whereby if I predict the correct winner, I get 1 point. Incorrect predictions get 0 points. I don't know how to do this using a formula.

## Adding Multiple Times Together Not Working Correctly

Jun 10, 2013

I have a list a time (HH:MM:SS) that i want to sum together to get the total number of minutes.

It works if I use simply add A2+A3+A4 etc, but not when I use sum(a2:a4).

There are over 2500 lines of data.

Sheet attached : times.xlsx

## Math Mystery- Not Adding Three Numbers Correctly

Oct 10, 2008

I am having an issue with Excel not adding three numbers correctly.

C10 = .82
C11 = .18
C12 = .70

C14 = Sum(C10:C12)

I also tried C10 + C11 + C12

Excel keeps telling me the answer is 1.69!

## Excel 2003 :: Need Cell Pre-filled Before Adding Results To It

Feb 25, 2013

I keep record of my blood sugar in excel 2003 that I send to my doctor weekly.

What I would like to do is, instead of typing the readings and mmol/L at the end in every cell, is to just type in the reading (example 5.5) then tab of the cell and have excel populate the cell with mmol/L automatically after the reading.

Can it be done?

## VBA Code To Colour Certain Cells Based On RGB Colour Shown In Cell A1

Apr 17, 2014

I have a lookup that gives and RGB colour code in Cell A1; for example 186, 206, 140.

I'd then like Cells R10:V15 to fill with the RGB colour based on the result in A1.

## Formula To Return Results Based On 2 Parameters?

Jul 5, 2013

1) I have an invoice form, and need to create a formula that will allow me to calculate a discount IF an item number begins with "C" or "CE".

Example: Item # is in cell F12. (may or may not begin with "C" or "CE")

Item price is in cell J12.

Extended price (qty x price) is in cell K12.

In L12, I need to calculate a discount (from % in fixed cell L9) on the figure in K12 - based on whether or not the Item # in F12 begins with a C or CE.

If it does not begin with C or CE, then L12 needs to equal 100% of K12.

(The 2 parameters I referred to in the title were:

C, followed by a number
CE followed by a number )

2) The biggest part of the dilemma is that the person using this spreadsheet is totally unfamiliar with Excel formulas, spreadsheets in general, and has to send this finished product to a client each week. So I need this to be as simple as possible - which seems to me to be a formula (that can be copied to insert rows, etc. if necessary).

## Generating Text For Cells Based On Results Of Formula?

Aug 14, 2013

So basically I have a spreadsheet that tracks if a patient has turned in there required paperwork within the last 6 months and then changes the cell to white and lets me know how many days they have left until they are due to turn this paperwork in again. Then if it has expired I have a condition format change the cell to Red but I would like to add in the text EXPIRED to the cell. lastly I have Cells that have no data in them gray and I would like to add in red text saying No Paperwork.

I'm hoping this will be my last build of this spreadsheet so I can go ahead and start applying it to the real workbook [URL]

## Copy Rows From One Sheet To Another Based On Formula Results

Feb 7, 2014

I have a report that is run weekly that shows items that have been returned over the last 3 months. The report shows the original date of purchase and the return date, but not the number of days since the purchase and the return. I need to have any items that were returned over 15 days go to a new sheet and display just those rows of information.

## Execute Formula Based On Index Match Results?

Oct 21, 2012

I have a table with Dynamic Headings and Expanding rows, that's setup like below: The formula in the Qty column would produce a "0", if the result of the Index Match has a blank. For example in a different table the reference cell would have "Heading3". Therefore the results in the Qty column would be like example below. The products in the table below are like 0's and 1's to trigger the formula to calculate with the variables, or give a zero. If the Index Match found "Heading2" the results would be based on cells under "Heading2 Column" etc.

x
y
z

[Code]...

## Formula: Absence Detail Shown

Sep 18, 2005

I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I have
the fllowing formula which doesn't work and I'm not sure why. A similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=\$C\$11),(AbsenceDetail))

My range names are correct and all have the same 'length'. F67 is 09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have it
formatted as General)

## IF Formula - Number To Be Shown As Currency

Jan 5, 2013

I have the results of a "IF" formula. I want that number to be shown as currency and allow it to be part of a "sum" formal. Is this possible?

## Locking Specific Cells That Are Hidden / Shown Based On VBA?

Jan 13, 2014

I am having trouble with my VBA code, it hides groups of rows (projects) based on the contents of corresponding cells above. these have either 'yes' or 'no' in them (indicating if the person is active in that project). The Yes/No is formula based from another sheet.

what I am trying to do, is have particular cells, withing the projects rows, locked (as they are also populated by formulas) but have other cells open for editing.

when I try and do this i get an error with my VBA, i am assuming that as cells are locked, the VBA is prohibited form hiding inactive projects/rows. i tried an addition at the bottom but this hasn't worked

Code:
Sub Worksheet_Calculate()
Dim i As Long, StartRow As Long, EndRow As Long
StartRow = 13

[Code]....

## IF Function (few Words Shown Based On Figures In Specific Cells)

May 17, 2009

I want to have a few words shown based on figures in specific cells. I not quite sure how to explain, but i will try my best:

A1 = 5
A2 = 0
A3 = 7

The function i am using looks something like this:-

=IF(A1<6,"Do I Have Sickness Self Cert?","Do I Have Doctor's Paper?")

However, by using this function, if the cell is empty it still shows the first wording when i need it to show lets say between 1 & 6 shows the first wording and more than 6 shows the second wording! If you know what i mean... I know what i want to do but cant really explain it very well.

Maybe it should look something like this but it does not work the way i am doing it.

=IF(E156>1<6,"Do I Have Sickness Self Cert?","Do I Have Doctor's Paper?")

## Formula To Calculate A Fee Based On Performance

Sep 8, 2009

I need formula to calculate a fee based on performance. For example I have 4 unique keys with the following performance:

KEYPerformance
2010,000
2120,000
2230,000
2340,000

I need to work out how I can formula drive a fee calculation based on performance which is subject to different ranges:

KEYMin FeeFee 1Fee 2Fee 3Fee 4
201000.10.20.30.4
211000.10.20.30.4
221000.10.20.30.4
231000.10.20.30.4

For example key 20 has a min fee chargeable of 100, however a fee is chargable based on performance as follows:

Fee Range 10-9999
Fee Range 210000-19999
Fee Range 320000-29999
Fee Range 430000-99999999

So key 20 gets charged 0.1% of amounts between 0&9,999, 0.2% of amounts between 10,000&19,999, 0.3% on amounts between 20,000& 29,999 and 0.4% on the rest.

How can this be combined into a lookup/range/low-high formula to extract the correct values????

## Formula To Calculate Based On Criteria

Apr 20, 2007

I have a spreadsheet that has staff id in one column and the work items number that they have done in a daily basis in another column.

The actual list is very long. I need to summarize in another column how many work items that they have completed in a daily basis.

I have attached a sample spreadsheet as an example. I would need to summarize in column H based on the staff ID. Some work items are shared by two staff but it will have to be counted as one work item completed for each staff. If work item B123466 is completed both by staff M56 and M54, then it will be counted as one for each.Currently, I am doing this manually with the filter function which is very tedious and often has mistakes. I would like to formularize this task.

## Formula To Calculate Result Based On Range

Dec 13, 2012

I have a scorecard that looks something like this:

90% or greater=3
80%-89%=2
70%-79%=1
0%-69%=0

I need the "cell" to react accordingly and I'm lost.

## Formula To Calculate Age Based On Date Of Birth

Dec 10, 2009

I need a formula to calculate age today based on a person's date of birth. I used to know this but I have not used it for awhile.

## Calculate Colum Total Based On Formula

Dec 8, 2009

I would like to have something that looks like a running total, but isn't.

I have in a colomn 'rate' and after that a column for each month in a year.
I would like to have at the bottom a total cost, so rate x hours.
have a look at the picture.

is there a formula for this?
ratemayjunejuli
\$10 2,02,01,0
\$12 2,03,00,0
\$10 3,02,05,0
\$15 4,02,53,0

total cost \$134,0 \$113,5 \$105

## Formula To Calculate Price Based On Sheet2

Apr 23, 2009

I am looking for a formula that can change the price of some of the items on sheet1 in column C by the amount found on Sheet2 in Column D. I would like it to base the calculation on column C in sheet2 (so I can choose if I want to add, subtract, multiply, divide, or make the price exact). I would like all prices that don't match these UPC codes to remain unchanged.

Intended Results can be seen on Sheet1 in Column E. Not sure if I should a formula with the Vlookup function or a macro, or maybe there is even a better solution.

## Formula To Calculate Pay Based On Hours Worked

Jul 21, 2006

i am trying to make an excel spreadsheet so i can keep track of my hours and pay at work... i know how to do mult and add but i wanted to know how to do the 2 together.... for example

Hours ST OT Total Hrs Gross Pay

8 2 10 ?

i would like help figuring out the gross pay if say for example my st time rated is 21.21 an hr, and the ot rate is 31.82 how can i get the 8 times 21.21 = 169.68 and the OT 2hrs times 63.64 to show up in the gross pay as a total of 233.32 - what would the formula look like?