Rounding Values And Maintaining Total

Oct 10, 2006

I need to round a number of values to 2 decimal places. Problem is this sometimes results in the total changing as the values after the 2 decimal places make up the remainder. I need to maintain the total. See attached..

Has anyone done this before? Probably something very simple but for some reason it's not coming to me. Well not without vba anyway..

View 6 Replies


ADVERTISEMENT

Filtering Column Cells And Maintaining Other Column Values

Mar 11, 2014

I have a spreadsheet with multiple columns:

Column B - Host Contact
Column C - Company Name
Column D - Attendees
Column E - Contractor Position

Column B will have anywhere from 1 to 10 names.
Column C will have 1 -2 names.
Column D will have anywhere from 1 to 10 names.
Column E will correlate with column D.

This list will go to multiple people who will want to filter column B for their name. When they filter their name, they should see all values in columns C, D and E.

When I try to filter this spreadsheet by a persons name in Column B, it only shows me the first value in columns C, D and E.

One of the attached pictures shows a mock-up of the unsorted list, the other shows the sorted list.

Sorted Format.PNGUnsorted Format.PNG

View 1 Replies View Related

Rounding Off Values In A Column

May 5, 2009

i have a column which has decimal numbers which i need to round off to 2 digits...
For ex:- 43.56865 should be 43.57
323 should be 323
456.6 should be 456.60

something like tat... how do i do this in a macro traversing through the entire column? i need it as a formula in a macro.

View 9 Replies View Related

Rounding Up And Exporting Values

May 12, 2007

I have some values that I have rounded off to two decimal places in Excel.

However, when I try to export the data to an accounting software, Excel copies the un-rounded off data to the software (i.e. I get the values with many decimal places). This has resulted in calculation errors when I try to sum up all the values.

Is there any way to get Excel to only remember the final, rounded-off values, such that it only copies these values to the other software?

View 4 Replies View Related

How To Stop MAX Function Rounding Values

Jul 4, 2014

I have 3 conditions within my spreadsheet, which only 1 condition can have a numeric value in it at any one time.

The result of my calculations returns the following results
Condition 1: False; Condition 2: 168001.5072; Condition 3: False
I then use the MAX command to pick up the cell that has a value in it.
The command I use is: =MAX(L28,N28,P28)

The problem occurs is when I use this MAX command it Rounds up the value from 168001.5072 to 168001.51 - I need to stop this rounding from occurring.

Now I have just been told on this forum about how to use the TRUNC command to stop my original formula from rounding my final value (168001.5072) but I'm not sure if using the TRUNC command will work in this situation.

I can not use the "=" command becuase depending on the values I use any 3 of the conditions can be met, which will mean a value will sit in either condition 1, 2 or 3, so that is why I need to pull the MAX value.

The attached image shows my issue.

The value on the right 168001.5072 is being rounded up and displayed as seen on the left as value 168001.51 and I would like ot know how to stop this from occuring.

image2.PNG

View 4 Replies View Related

Rounding Decimals Values By Amending Formula

Dec 11, 2012

I am using the following formula to convert m (months) into y/m (years/months)

=IFERROR(QUOTIENT(AQ8,12) & "/" & MOD(AQ8, 12),"")

where in AQ8 I have m (months)

how do I ensure that the formula does not display any decimal points after the m and instead rounds to the nearest month

ie. 100 to show as 8/4 (not as 8/3.5)

note that I have an additional formula working which gives me the 100 (months) in AQ8

IFERROR(AVERAGEIFS('Raw Scores'!AP$2:AP$65,'Raw Scores'!D$2:D$65,"M"),"")

(so I am guessing that this is rounding it first to the value I see in my cell but it may infact be using 99.84 months for further calcs)

I have tried formatting my cells but this does not work

View 2 Replies View Related

Excel 2010 :: Rounding Negative (and Positive) Time Values?

Apr 24, 2013

EXCEL 2010. I have a column of negative and positive times (eg. -00:52, -03:07, 06:02) in custom hh:mm format, and would like a new column rounding these times to the nearest negative or positive hour (with just the whole hours displayed), so I need a formula that would give me (for this example) -1, -3, 6, etc.

View 9 Replies View Related

Banker's Rounding Or Scientific Rounding

Jul 9, 2008

I am trying to round similar to Banker's Rounding or Scientific Rounding but I can't find a consistent formula that works perfect with decimals.

Using three decimal places for all the samples, I can get 0.0785 to round to 0.078 but 0.1785 wants to round to 0.179 instead of staying 0.078. Or 0.0005 will round to 0 but 0.5115 wants to round to 0.511 instead of 0.512.

Here is a list of sample numbers along with desired results:
.0785 should be .078
.5115 should be .512
.5035 should be .504
.0005 should be 0
.0025 should be .002
.0194 should be .019
.0195 should be .02
.0135 should be .014
.0115 should be .012
.8115 should be .812

I cannot find a formula which gives me all of these results. Here is a list of the formulas I have tried so far (NOTE: cell A2 is the working cell in my worksheet where I enter the number to be rounded)

1) =MROUND(A2,0.001)

3) =ROUND(A2,3)

4) =IF(ISERROR(IF(MOD(MID(A2,4,1),2)=1,CEILING(A2,0.001),FLOOR(A2,0.001))),0,IF(MOD(MID(A2,4,1),2)=1,CEILING(A2,0.001),FLOO R(A2,0.001)))

5) =EVEN(A2)

6) =ROUNDUP(A2,3)

7) =ROUNDDOWN(A2,3)

View 9 Replies View Related

Maintaining Row Format

Feb 28, 2007

I have a table where alternate rows are formatted with interiror colorindex 15. Macros will result in 1 or more of the rows in the table being hidden (this can be consequtive rows).

Obviously, when a row is hidden (unless that results in 2 consequtive rows hidden) the alternating row format no longer works (ie either 2 grey rows or 2 nofill rows together)

I am struggling with the code to set the format when a row is hidden. I loop through the table to set format, fine if no row hidden. But when row is hidden everything I try to do to take account of the hidden row results in an endless loop when the hidden row is encountered.

View 7 Replies View Related

Sort Maintaining Format

Jan 1, 2007

I have a spreadsheet that has tons of entries for revenues and expenses. Some cells on the rows with revenues have a different format than these same cells on the rows with expenses.

The problem is that, when I sort the rows to organize them by date, Excel seems to only organize the values in the cells, screwing up all the formats, mixing the revenues format with the expenses format.

Is there any way to organize the information maintaining each cell's formats?

View 9 Replies View Related

Maintaining The Color Of A Cell

Feb 2, 2007

if i am copying cell A and pasting it into cell B, and cell B is shaded gray and cell A was plain white, how do I make sure the color of cell B wont change?

View 2 Replies View Related

Maintaining A Sorted List In 2003

Jan 27, 2009

I have an Excel sheet with a list of data, which is likely to change frequently and has to remain in sorted order.

Requiring that users of the spreadsheet maintain the data in this way (i.e. sort it every time it changes) is a really bad solution and I'd rather not use a macro if I can avoid it (too much stuff can go wrong).

Is there a good way of doing this? At the moment, I've implemented merge-sort within a sheet, which works, but is a heavyweight solution, taking 6 columns per merge-sort iteration (so 60 columns to sort 1024 rows, 96 columns to sort 65536 rows). I could try to compact it, but my head was starting to implode programming it even with as few as 6 columns.

There must be a better way of getting Excel to maintain an automatically sorted list.

View 11 Replies View Related

Copying A Value Whilst Maintaining Format

Mar 2, 2009

Cell A1 could contain either % value (eg 50.0%) or could contain a numeric value (eg 50.0). (It's input is written by a macro that performs a sorting function, hence the mix of % and absolutes).

I need to copy the contents of A1 to cell B1 with a simple formula "=A1"

The problem is that Cell B1 will either show 0.5 or 50.0 depending on whether A1 is a % or number, respectively.

Doesn anyone know how I can output in B1 with the format from A1?

View 9 Replies View Related

Sorting Excel Alphabetically Maintaining Spaces

Feb 24, 2014

I have data arranged in columns A-F. I am wanting to set it up so those groups are all based on the name in column A:

Name Location Quantity Notes Etc.

Joe Likes bread
Hates butter
Jane

Julio

Column A only takes up one space, while the other columns take up 3-4 spaces on average. I am looking to sort column A alphabetically while maintaing the spaces between so that the info doesn't become jumbled.

View 8 Replies View Related

Excel 2007 :: Sorting While Maintaining Subtotals?

May 6, 2013

I have a spreadsheet with nested subtotals. i need to sort it based on one of the nested subtotals, but maintain the rows that comprise the subtotals, together with the subtotal.

is there a way to do this? I don't want a macro because then the whole project will be done as a macro. this is just a small part of what i am doing.

sample included. my goal is to sort by column F (ABS value) high to low so that rows 8-13 are together and maintain the subtotal and on top, then rows 34-36 are together and maintain the subtotal and are next, etc.

I am in Excel 2007.

View 1 Replies View Related

Copying Cells From One Worksheet To Another And Maintaining Format

Aug 7, 2008

I have a worksheet that gets autofiltered by the user. I need take the unhidden data and copy it to a new worksheet.

Range("H18").Select
Dim sh As Worksheet
Dim Cell As Range
Dim Txt As String
For Each Cell In Sheets("Panel Check List").Range("H18:H5000")
If Cell.EntireRow.Offset(1, 0).Hidden = False Then
Cell.Copy
Sheets("Query Results").Range("A6").Select
If IsEmpty(ActiveCell.Offset(1, 0)) = True Then
ActiveCell.Offset(1, 0).PasteSpecial
End If
End If
Next Cell

View 9 Replies View Related

Adding And Deleting Rows In Worksheet While Maintaining Formulas?

Mar 26, 2014

I have a Productivity Report that contains very basic formulas that provide totals for 4 columns (B6:E6) and an average for one column (F). I have included two command buttons, one to add a new row and the other to delete a row.

I need to be able to add or delete rows depending on how many employees' productivity I will be tracking on any given week; each row represents a separate employee. I need the following functionality out of my form:

1) formula in column F needs to copy and paste with each new line
2) when a new line is copied and pasted I need the contents to be cleared
3) I need the user to be blocked from deleting the first row (3 on this form) in the table

The code I'm using for my "Add" button is:

[Code].....

The code I'm using for my "Delete" button is:

[Code] .....
The buttons add and delete rows as I'd like them to but content is not clearing, with each row added the contents provide a sub total. I've tried various lines of code (some more complicated and some less) before I recorded my own macro (see above).

Attached File : Productivity Report (HH).xlsm‎

View 8 Replies View Related

Insert Row While Maintaining Merged Cells - Locked Sheet

Oct 28, 2011

I have a protected sheet with merged cells. I would like the user to be able to insert a row and have the formatting (including merged cells) duplicated on the new row. I've searched and seen some different options using VB but I'm clueless as to how to use those. Is there a simple way to do this?

Copying the row and using "insert copied cells" won't work because they get an error because of the sheet protection.

View 1 Replies View Related

Excel 2013 :: Importing Data And Maintaining History

Aug 5, 2013

I have to import data from an external source(oracle database) to an Excel(2013) table.

Now the data in the staging table in the database keeps refreshing/changing, However in Excel i need the data to come into a new row everytime instead of refreshing the whole table and looking like the staging table in the database. So basically i need to build history in Excel.

View 3 Replies View Related

Excel 2010 :: Maintaining Format In A Cell When Using Formula

Jan 10, 2014

I just upgraded to Excel2010 and noticed that if I calculate percentages resulting from other formulas, the result displays as a percentage with 15 decimal places and it ignores the format of the cell. My guess is that since formulas are being used in cells A1,B1, and C1, Excel is ignoring the format. When I hard code the numbers, I obtain the desired result.

Is there a way to change the default of 15 decimal places for formula results involving inputs that use formulas in their own creation? (outside of the Round function in each cell? Within Options?)

The data looks like this:

A1 = formula resulting in 1.76%
B1 = formula resulting in 1.90%
C1 = formula resulting in 1.69%

D1 = C1*B1/A1 resulting in 1.8218147382920100%

The desired result is 1.82%.

View 4 Replies View Related

Copying Vlookup And Maintaining Original Table Array

May 5, 2008

I'm trying to copy a vlookup to an entire column, I want to look up a value in the cell to the left and compare it to a given table; but when I copy it down it up dates the cell value, but it moves the table down by one row at every row so it's not finding most of the values the further down I go.... what am I doing wrong. I doubt I'd have to re write the formulas in all the 2500 cells I need to look up.

View 3 Replies View Related

Total The Offset Values

Jan 11, 2007

Im trying to have the sum of QTY1-QTY4 show up on the next line (x, 1) even if say Qty2 doesnt have a value.

View 12 Replies View Related

Total Two Different Values In One Cell

Aug 19, 2009

I am using the following but need to add an additional factor into it and not sure how.

The following works... but I also need to change/add... if F1:F100 is equal to 'Cash' or 'Finance'... and I am not sure how to do two values in one column.

=SUMPRODUCT(--('Deal Log'!F1:F100="New"),--('Deal Log'!H1:H100="Cash"),--('Deal Log'!J1:J100="Knight"))

View 9 Replies View Related

Calculating A Total Of Different Cells With Less Or More Values

Jan 23, 2014

I'm trying to calculate total occurrences of a given month. I have included the spreadsheet for reference with totals.

I only want to calculate when the Policy column has a "N". If it has a "Y" I do not need to do anything

If the Policy has a "N" I want the formula to look at the V and P columns and give me a total in the Total Occurrence column. I want it to look at the entire month for a grand total.

If the V or P column has a 4 or less it should equal 0.5, if it has a value is between 4 and 10 it would equal 1. So in the Total Occurrence column should calculate the all of the 0.5 and 1's based on each set of columns and give a total. In the example that I have given in the spreadsheet the total in the Total Occurrence column would be 2 because Jan. 1 has a N and a 8 which equals 1 and Jan. 3 has a N and a 4 which equals 0.5 and Jan. 5 has a N and a 4 which equals 0.5 for a total of 2 occurrences.

View 10 Replies View Related

Getting Total Values Within Time Interval

Mar 14, 2014

I need to get the total values within a criteria. Please see attached sample file.

View 5 Replies View Related

Formula To Total All Values Of Same Date

Sep 10, 2013

I have a spreadsheet that has dates in column A and values in column B. Some of the dates in column A repeat: I need a total for each day in the month? Is there a formula for this?

A
B
C

1/5/13
3

1/5/13
4
7 ( total for 1/5/13)

2/5/13
1
1

3/5/13
4

3/5/13
1
5

View 7 Replies View Related

Estimate Total Income Of Values

Mar 27, 2007

i wanted to ask that in excel i have different values, if i post on ere its so long actually i cant post it coz it will tke ages to do so; so wot i wanted to no that how to estimate total income of values? and how to estimate annual profit/loss?; i mean the formula to find these terms.

View 9 Replies View Related

Total Monthly Values For Individuals

Aug 31, 2006

I have monthly a list of 2,500 people with an allowance value for each individual shown.

Problem I got is that sometimes there is more than one allowance entry for the individual in each month. I just need the total for the individual in that month. Each month is on a separate worksheet. I have been racking my head, but I can’t figure how I can look at the list of people (who have a unique number) and just total it.

View 9 Replies View Related

Allocate Values From A List Based On Total

Feb 5, 2014

I am trying to create a Excel file for my job. I work in a warehouse where I have many different orders all of which are made up of various different numbers of items and priorities. For example:

Order 1 = 45 items, Priority 1
Order 2 = 78 items, Priority 1
Order 3 = 48 items, Priority 2
Order 4 = 34 items, Priority 3

The total number of items is divided by the number of staff to give each staff member a total for the evening.

I plan to have a list of these orders in the excel file.

What I would then like to do is to have each staff member allocated orders so that the their total is reached. The sheet would automatically allocate orders to each person from the list of orders so that based on priority first then by the largest number of items to the smallest.

I think this should be a fairly simple sheet to create and I have a view of creating an application for it if I can get it working.

View 1 Replies View Related

Calculate Total Number Of Values For Each Day Of Week?

Dec 2, 2013

My spreadsheet is set up so that Column A has dates and Column B has a value. How can I calculate the total number of values for each day of the week? I've tried a few formulas but they either didn't work or didn't actually take the value into consideration and just counted all the 'Mondays'. I'm not sure if that's clear enough, but if we're just looking at Mondays to simplify it:

Monday, 1 January 2000: 2
Monday, 8 January 2000: 5
Monday, 15 January 2000: 0

Mondays: 7

View 1 Replies View Related







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