Rounding Function That Makes The Resulting Zero A Dash

Feb 24, 2009

I am importing a .txt file into Excel that has two columns of dollars and cents. When I do my subtotals, all subtotals should be zero. Some of the totals show as 0.00, some as (0.00) and some as a dash which is what I would like for all of them. I have tried: ...

View 9 Replies


ADVERTISEMENT

Sum / IF Function Resulting To Calculation Of Block Of Cells

Jun 3, 2014

I have quarters of the year. I'm wanting to find a function wherein when I punch in for example year 2012, the cell would give me the sum of the 4Qs. If if change it to 2013, then it would give me the sum of 4Qs for 2013.

See attached sheet : sum from blocks of cells.xlsx

View 3 Replies View Related

Function Resulting To Exact Month When Breakeven Exists

Jun 24, 2014

I'm trying to figure out a function that allows to me to determine the exact month when I will breakeven. For example, my total net income for the 2 quarters of the year is 1050 and my investment is 500. If I have an income in Jan of 300, 300 in Feb, and 200 in March, then the function will spit out Feb as the breakeven month.

Please see attachment. Exact year to see when I breakeven.xlsx‎

View 6 Replies View Related

Rounding $ Within An IF Function

Nov 21, 2008

I am trying to write a formula that will round numbers to $.05, $1, $5, and $10. The formula needs to be written in a way that If c75 <100 round to $.05, if c75 is greater than $101 but less than $500, round to $1, if c75 is greater than $501 but less than $1,000, round to $5, and if c75 is greater than $1,001, round to $10.

=IF(C75<100,ROUND(C75*20,0)/20)

but i can't quite figure out how to get the rest of it to work.

View 4 Replies View Related

Rounding Function Works On 1 PC But Not Another

Dec 1, 2008

I have a very simple spreadsheet that I use for preparing quotations. It was created on my PC at home and includes a simple roundup function (=ROUNDUP((F199*G199)+F199 2) ).

I now use this spreadsheet on my PC at the office and the function works perfectly well but if I try to edit it, or create a similar rounding fx, on my office PC I keep getting the error message "You've entered too few arguments for this function".

I've tried using the Help Menu in Excel but even if I copy one of the formulas from the Help Menu into the spreadsheet I still get the error message. The 2 versions of Excel are the same (2003). I tried inserting a ',' and a ';' in front of the '2' but this has also not helped.

I have attached a sample of the offending spreadsheet. The rounding function is in column "B"

View 10 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

Formula With Text Function Rounding Up Result

Dec 8, 2007

I have the following formula: =TEXT(( SUM(D98,D117,D136))/12,"0")&"' - "&MOD((SUM(D98,D117,D136)),12)&""""

This formula adds the inches in D98, D117 & D136 and divides it by 12 to get the footage of the 3 cells. The problem occurs when you reach the half foot mark...for instance say D98 was 2-0 (24 inches), D117 was 3-0(36 inches) and D136 was 2-6(30 inches) added up this comes out to 7-6(90 inches)...the formula then rounds the footage up to 8 feet...this can understandably be frustrating when I'm trying to get an exact measurement...is there a way to force the formula not to round up?

View 7 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

Vlookup Resulting In REF#

Oct 6, 2009

Having some problems with a simple vlookup formula.

Never experiened this before.

I keep getting a #ref

Here is the forumla I am using

=VLOOKUP("JK09",Feb!A2:A9,13)

What I am expecting is for excel to look up the value of "JK09" within the range of A2:a9 within the worksheet Feb, and when it finds it it will give me the value in coloum 13 of the macthing row.

View 18 Replies View Related

Code Makes Negative Percentages Red?

Aug 17, 2014

Following link explains how can format negative percentages.

[URL]....

Following code makes negative percentages red, positive percentages green.

[Code].....

I want to make; negative percentages red, positive percentages green, zero percentages blue, ---------->This is my question.

Attached File : Color Format.xlsm

View 3 Replies View Related

Save Workbook When User Makes Changes

Sep 24, 2009

I wrote a code that is suppose to save the workbook every time a change is made but so far I have been unsuccessful at getting it to work. The workbook contians 7 worksheets.

This is the code I wrote to try and accomplish this task ....

View 6 Replies View Related

Click On Cell Makes Calendar Pop Up

Dec 27, 2007

I have read through numerous posts, but cannot get one thing to work. I am using Excel 2003, and am trying to get a calendar to pop up, to select a date, and then return that date to Cell B2.

I was successful at making the calendar pop up by the following methods:
1. Added a button to the toolbar, and assigned the Calendar Macro to it.
2. Using VB, added a sub-menu item to the right-click (context) menu, using the code below.

Private Sub Workbook_Open()
Application.OnKey "+^{C}", "Module1.Macro2"
End Sub
However, my goal is to make the calendar appear when I click on cell B2.
I tried using the following code, but when I click on B2 nothing happens.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$2" Then UserForm1.Show
End Sub
I also tried:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
With Worksheets(ActiveCell.Worksheet.Name)
If ActiveCell.Column = 2 Then
If ActiveCell.Row = 1 Then
UserForm1.Show
End If
End If
End With
End Sub

View 9 Replies View Related

Formula In Cell Resulting In #NAME

Jun 4, 2006

I am trying to add a formula to a cell but I get this error, #NAME?

Here is the formula: =((pi * (5^2)) / 2) - ((5^2) * ASIN(1 - (A73 / 5))) - ((5 -A73) * SQRT(A73 * ((2 * 5) - A73)))

I'm trying to add it to cell B73,

View 3 Replies View Related

If / Then Formula: Makes A Character That Has A Score Of 9 For One Of His Attributes?

Oct 29, 2008

I'm helping out a community that puts out a role playing game by making a character sheet for their gaming system. It's normally a pen-and-paper type affair, but a few people have reached out to me and asked me to make it. Now, one thing that I really thought would be nifty would be to make it persistent. I know of the Excel basics, creating basic formulas and the such, but this is where I hit a brick wall.

For the character sheet, they normally have basic attributes on a 1-20 scale. These attributes are accomanied by a bonus. The only thing is those, while these bonuses go across a linear path (For attribute 1, it's -30, for 2 its -20, for 3 its -10, for 4 its -5 for 5 its 0....), I cant seem to figure out how to create some kind of If/Then formula for it....

Heres my example:

Brad makes a character that has a score of 9 for one of his attributes. The bonus given to someone with a 9 is a +10. What I'm looking to do is create a table that sees that 'If (c9)=9, Then (d9)=+10'...

And my second related issue...

Is there any possible way to do the above mentioned formula in relation to a drop down selection bar? It's the same thing here; To break it down simply, It would be excellent if there was a way for it to say If (a10)=Warrior, then (c10)= +10.

View 3 Replies View Related

Conditional Formatting Which Makes The Cell Green

Mar 4, 2009

See attached document. In cell G4 i need a format which will make the cell green, amber or red depending on the values in Cells I7 to I9.

3 Greens = Cell G4 to be green
2 Greens, 1 Amber = Cell G4 to be amber
2 Greens, 1 Red = Cell G4 to be red

View 2 Replies View Related

Set A Conditional Formatting Rule That Makes A Cell Red?

Jan 9, 2014

I want to set a conditional formatting rule that makes a cell red or green depending on if the value in the cell is larger or smaller than the value in another cell +2% or -3%. If neither of these conditions are met no formatting should be applied..

a) In the cell (R104) where the condition is set I have the following formula:
=if(BP104=0;"";BQ104/BP104) (the values in BP104 and BQ104 is retrieved from a database)

b) The conditions I've set in R104 are the following

1) =isblank($R$104) (condition: "nothing")

2) =$R$104<$R$106-0,02 (condition: "red")

3) =$R$104>$R$106+0,03 (condition: "green")

c) In cell R106 the value there is a value of 90%

The conditions seem to work fine when the value in R104 is higher or lower than the conditions set in 2 and 3 above but when the value is blank in R104 the cell goes green, which it shouldn't.

View 6 Replies View Related

In A Formula, How To Change The Format Of The Resulting Te

Dec 16, 2005

how to change a proportion of text in a resulting concatenation
formula.

cell A1 contains the text in bold "ABCDEF", cell A2 containes "GHIJKLM" cell
A3 contains =A1 & " " & A2 but I want the cell A1 part to remain in bold. Is
there a way of using the TEXT function e.g. =TEXT(A1,BOLD) & " " & A2?

View 9 Replies View Related

Pull Data And Makes Changes From Different Tabs Using Dropdown List?

Jan 4, 2013

I have an (organization) work book that contains departments in different tab with each department having its own tab. In each tab is the employee name, dept manager, dept number and emp number. In the CoverSheet (main sheet) I want to put the department numbers in a drop down menu.Upon selection of a department number i want to Look in the whole workbook to see where the department number is, pull up the department head and all the employees in that department with their employee numbers

The reason for this is that I want to be able to add a button to delete/edit to be able to edit employee details centrally from this particular (CoverSheet) sheet and update the relevant sheet.

Also put in an input box to add employees and update the relevant tab (department)

View 7 Replies View Related

Identify Minimum Combination Of Columns Which Makes Row Unique?

Nov 20, 2013

I have a (phylogenetic) matrix with a species in each row, and morphological character in each column, scored as 0, 1, 2, 3 or 4 for each different species, so something like the following but much bigger:

Character 1 Character 2 Character 3
Species A 1 0 1
Species B 3 2 2
Species C 1 2 0

I want to identify the minimum combination of different columns (i.e. their values, but also which columns) that make a particular row unique.

View 14 Replies View Related

IsBlank In VBA: Check That Makes A User Insert An Integer Between 0 And 90

Aug 28, 2009

Trying to design a check that makes a user insert an integer between 0 and 90. So far I can use this:

View 3 Replies View Related

MouseOver Cell That Makes Apear And Disappear An Image

Dec 15, 2009

I would like to do a routine in VBA on excel 2007 that makes the following:

1- When the mouse is over a cell it pops-up a window that shows a picture;
2- When the pointer is removed from the cell the window that contains the picture closes;
It is very important that the picture that is shown be adressed by a relative path from the folder in which is the excel file.

The pictures can change; this is the reason that the picture should be addressed by a path.

View 6 Replies View Related

Opening Text File Makes The Code Slow

Feb 19, 2012

I am using the below to open a text file and copy the used range to my working workbook. The opening of the file makes the code slow and and also it may be bcoz i am trying to paste 11800 lines of data from one file to another.

Also i can see the flickering of the screen when the files are open. How to make the code faster and more efficient.

Code:
Sub readSimFile()
Application.ScreenUpdating = False
'//code//
Application.Calculation = xlCalculationManual

[Code] ......

View 5 Replies View Related

Combobox Dropdown Selection Makes Desired Value Appear In Cell

Mar 14, 2012

I have searched and have not been able to find an answer to this question so it might be a little unique possibly. I have an ActiveX combo box that I am trying to do something with. The text that I want to appear in the combo box is already there and I did this by creating a list and referencing it to the combo box. So the combo box has the following four items in its drop down:

Boat
Car
Plane
Walk

Now the part I cannot figure out is how to make a selected value appear in another cell based on what was selected in the combo box. For example, if boat is selected in the combo box, then I want the value 25 to appear in a cell. If Plane is selected in the combo box, I want the value of 100 to appear in a cell. For walk 5, and for car 22. I know this can easily be done with data validation and a validation drop down list but I do not want to use that but need to have a combo box do it instead. I just don't know if it cannot be done as a list or not and have experimented with INDEX but not having any luck there. I do not want to use any macros for this either. Basically I am wondering how I can make my combo box work just like data validation drop down menu bar with formatted values outputted into a cell.

View 3 Replies View Related

Concatenate Cells Referencing Another Tab - How To Get Rid Of 0s In Resulting String

Jan 10, 2014

I am trying to combine text from multiple cells into one cell. I am referencing cells that reference cells on another tab. I have tried several formulas (see attached) but I have not been able to get rid of the zeros in the resulting string. I know I could reference the original cells, but I would like to find a solution to this without using VBA.

View 3 Replies View Related

Conditional Formatting Is Not Resulting Of Desire Solution

Dec 29, 2009

I have the attached table. I need to format with conditional formatting with the following criteria:

1) If >= 80% , then flag as green
2) If >=1% but <80%, then flag as yellow
3) If 0%, then flag as red.

I did the formatting in conditional formatting but the it did not results in the desired solution.

View 4 Replies View Related

Filter By Date & Count Resulting Data

Feb 28, 2008

I am working on project of doing Turn around time Analysis of the volumes of work recieved before 12:30PM and after over a weeks time. My data consist of Work ref, Datein, Dateout, Timein, Timeout. To carry this analysis I have to Mannually filer the data as per Datein / Timein and Dateout and then count the no of work ref completed within Same day or one day or more than one day for each date of a given week. I recorded a Macro which gives count of no of work. for one particular date of week and repeated the same for each 5 working dates of given week. this Macro has gone to big and I want to use some looping technique which would change my filtering criteria. I tried doing this by assining a variable to Criteria but Macro gives no values.

Range("A1").Select
Selection.AutoFilter
Range("B1").Select
Selection.AutoFilter Field:=2, Criteria1:="=04/02/08", Operator:=xlAnd
Range("E1").Select
Selection.AutoFilter Field:=5, Criteria1:="<=12:30", Operator:=xlAnd
Range("IV1").Value = "=SUBTOTAL(9,H2:H272)"
Selection.AutoFilter Field:=9, Criteria1:="=L*", Operator:=xlAnd
ActiveSheet.Calculate
Range("sheet1!B3").Value = Range("IV1").Value
Selection.AutoFilter Field:=9, Criteria1:="=S*", Operator:=xlAnd
ActiveSheet.Calculate
Range("sheet1!B4").Value = Range("IV1").Value

I want to repeate the above code for different dates of week 04/02/2008 to 08/02/2008. How to change Criteria using Loopin technique.

View 2 Replies View Related

Insert JPEG Into Excel Sheet Makes Font Fuzzy?

Jan 12, 2012

when we insert a jpeg image into a excel sheet the font on that page looks fuzzy.

View 2 Replies View Related

Remove Character From Range & Pad Resulting Numbers With Zeros

Mar 3, 2008

I have a spreadsheet with a column that containts UNSPSC codes that can be in any of the four following formats:-

10
77/11
78/10/22
44/12/19/04

I basically want ta formula that will find and remove any / leaving me with

7711
781222
44121904

View 9 Replies View Related

Parse After Each Dash

Aug 9, 2007

I work in the Oil and Gas industry and deal with large data tables that have "Location Codes" for lack of a better term.

The problem is that not all Databases use exactly the same format of code, they will however always have the following:

xx-xx-xx-xx ---> ie. a string of four numbers each seperated by a Dash.

This string sometimes will appear after a text name of varying length. With this in mind I would like to parse the four numbers into four different columns.

Things I've tried with some success:

Using the "Right" function to break off the location code off the end of the entire name, and then using the ".parse" command in VB to seperate the numbers at given intervals.

This is great for certain purposes however because the four numbers are not always 2 digits, and the ".parse" command cuts at given intervals it is hard to accurately parse an entire set of data.

Some examples of location Codes are given below:

9-23-78-11
WEST DOE 11-16-81-15
KNOPCIK 3-9-73-9

View 9 Replies View Related

Formula To Compare 2 Columns And Manipulate The Resulting Data And Output

Mar 31, 2007

I have column A and column B:

I will be inputting data into column B.

I need excel to check to see if the data I input into column B is an exact match to the data in column A.

If it is an exact match, then column B will remain blank.

If the data in column B is different, I need column B to show the following:

No match: <data>

Example I input in column B the following:

Column A Column B
1. Car Car
2. 4357 9999
3. fsd34d 4erd
4. 98dkf 98dkf

Spreadsheet should show:
Column A Column B
1. Car
2. 4357 No match: 9999
3. fsd34d No match: 4erd
4. 98dkf

(Cell 1 and 4 in column B are empty because they are exact matches to Column A cell 1 and 4)

My questions:
1) How does the excel formula need to be written for this to work?

2) Is there a way to set it so that when I do a mass copy to data into column B that the formula will not be overwritten and it will still check to see if the data I copy and pasted into that column matches the data next to it in column A?

View 14 Replies View Related







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