Changing The Value Of A Number

Oct 18, 2009

Having trouble getting my head around this one...
i want to enter hh.mm eg. 3.30 and then use it for sums...

View 9 Replies


ADVERTISEMENT

Changing Number Format

Nov 29, 2008

Please take a look at the attached spreadsheet. in the ODDS column D, after download the some of the data has been changed from say 100-1 to a series of numbers how do i change them back i would also like to show the odds is they were 100-1 as just 100 and say if the odds were 13/2 then i want to show 7.5 basically i want th first number divided by the second.

View 12 Replies View Related

Changing Number Formats

Jul 16, 2009

Code be to change the number format of the range H21:H37 on my attached spreadsheet from the currency format with the $ symbol and 2 decimal places whenever cell H20 displays "UNIT PRICE" to a number utilizing the comma seperator and with no decimal places and no $ symbol whenever the cell H20 displays "SHIPPED"?

View 11 Replies View Related

Changing A Number Automatically

Dec 18, 2006

In the following sheet I'm tracking daily numbers against a monthly total. In the cell E4 for example I have a minimum per day number needed which is based on the monthly goal divided by the number of days availble to work. What I would like to be able to do is have the number auto-adjust if a letter (i.e. V=Vacation, S=Sick, etc...) is used in place of a number on any given day.

View 14 Replies View Related

Sum With Changing Month Number?

Feb 20, 2012

I want total in cell A3 based on the month number in A1, example given below.

2nd example if I put 5 in A1 the total should be 2500 in cell A3.

3ResultJanFebMarAprMayJun9002003004001000600800

View 2 Replies View Related

Changing Number Format

May 2, 2014

I want to write down the number (149727273)

To become (1.49727273)

View 9 Replies View Related

Changing Colour Of Number Using IF Function

Mar 21, 2009

Is it possible in anyway to make a formula that changes the colour and boldness of a number depending on whether it is bigger than 50 or 100?

eg. if i enter all my numbers as dark grey. then i enter say, 65, i want it to automatically change to black and bold. if i enter 105, i want it to automatically change to red and bold without me having to do it manually?

View 4 Replies View Related

Changing Cell Number Format With VBA

Jul 27, 2012

I believe Range.Numbeformat is the property.

I have a cell with a dropdown picker. If the user chooses "Distractor" from the picker, Worksheet_Change triggers an Inputbox to open, asking what kind of distractor it is. We'll use "Gloves" for this example.

I want the cell to display "Distractor - Gloves" while keeping the actual value as "Distractor"

The following is not working for me:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim DistractorText As String
Select Case Target.Address
Case "$B$23"
If Target.Value = "Distractor" Then
DistractorText = InputBox("Type of Distractor:")
Target.NumberFormat = "@" & " - " & DistractorText

There's more code, but I copy-pasted the trouble area. The last line using the NumberFormat property is giving me trouble.

View 3 Replies View Related

Changing Formula In A Number Of Cells

Mar 10, 2013

I've created a user form to enter some values in a few adjacent cells. When the user clicks on a button, I want several other cells to be loaded with special formulas that refer to the new values. This happens on a row by row basis. First, a working formula in that cell which is AB5 is:

Code:
=IFERROR((IF(AK5

View 1 Replies View Related

Changing Number To Text For Months

Jan 5, 2010

the summary sheet only keeps two months of data and i use the below code to
to find out where the cutoff month is.

but of course now that it is january it results in an error because we are subtracting 1-2.
i was going to set up a Select statement to check if the month is 1 or 2 and deal with it that way.

strOldMonth = MonthName(Month(Selection) - 2)

View 9 Replies View Related

Textbox Error When Changing Number

Apr 10, 2007

This code works fine, the problem is if I put a number in, and then backspace in the textbox to change the number, I get a runtime 13, type mismatch. This error only occurs when I delete all the numbers in the cell. For example, say the number in the cell is 5025. If i change it to 5123, that is I did not have to delete the first 5, it will work. If I want to change to something like 4167, i must delete the first 5 and it will give the error. I have only been using VBA for a couple weeks, I assume it's something simple.

Private Sub TextBox1_Change()
Dim StaffCost As Single
Dim AvgDriveTime As Single
Dim AddlDrives As Single
StaffCost = OLEObjects("TextBox1").Object.Value
AvgDriveTime = Range("E5").Value
AddlDrives = Range("F5").Value
With Range("G5")
.Font.Bold = False
.Value = StaffCost * AvgDriveTime * AddlDrives
End With
End Sub

View 4 Replies View Related

Bulk Changing References For A Number Of Cells

Mar 15, 2013

Say I have this data in worksheet

A
B
C
D
E

14/1/2012
1
2
3
4

15/1/2012
5
6
7
8

And this in worksheet 2

=A2
=B2
=C2
=D2
=E2

=A2
=C2
=D2
=E2
=B2

=A2
=D2
=E2
=B2
=C2

Now what I want to be able to do is when I add a new row to worksheet 1, in this case row 3, then the references in worksheet 2 either to automatically (or manually do it in one simple go) increase by one and now refer to the new row. So the references now become =A3, =B3, =C3 etc.

View 1 Replies View Related

Same Page Printed But With Changing Sequential Number On It

Nov 12, 2008

I have a selected area which I print as labels.

I want to have a number on this label preferably counting back from the quantity of print.
So if I select 300 copies to print, the first label shows somewhere 300, the 2nd label 299, the third 298 and so on.

I use a button and macro for printing selected labels, so perhaps the reverse printing could be added there if only counting up is available.

Also to make it easier, a cell on the sheet can contain the number to count down from (this is preferred on thinking about it) So I could then print 20 labels from 300 to 280 say.

View 14 Replies View Related

Changing Default Number Of Decimal Points?

Oct 24, 2012

I have tried, through control panel - region settings etc, to change the default number of decimals to 0. I often use the Number format using the shortcut CTRL + SHIFT + 1 but then have to reduce the 2 decimals down.

I have recorded a macro to apply this kind of formatting but the disadvantage of this is that I cannot undo any actions before that point - which has gotten me into some trouble on a few occasions .

Is there a macro that I can use that adjusts the "Normal" cell style number format from General to Number (with thousand separator but 0 decimals) each time I open a new book? As merging cell styles is also quite a mundane task..

View 5 Replies View Related

VBA For Changing Number Format Of Chart Labels?

Oct 10, 2013

This should be pretty simple but I don't know how to do it. When I run the macro recorder, it doesnt record the change. I just want to change the number format of the chart labels from currency to a normal number and visa-versa. Why doesnt this work?

Code:
ActiveSheet.ChartObjects("chart 5").SeriesCollection(1).DataLabels.NumberFormat = "[$-809]#,##0.00;-[$-809]#,##0.00"

View 2 Replies View Related

Number Format Changing Calculated Cell Value

May 20, 2014

I've created a model starting from on another person's workbook, and I'm seeing an issue I haven't seen before.

For instance,

A1 = 10
A2 = 1.5
A3 = A1 * A2 = 15 (all good, so far)

If I change the number of A2 to 0 decimals places, the value shown will be 2 (which is correct, of course), but the value of A3 becomes 20. I would like for this to stay at 15 because the correct value of A2 is 1.5, not the rounded value of 2.

View 2 Replies View Related

Changing Sheet Number Automatically While Dragging

Mar 8, 2007

I have worksheets named 1 to 100. In a different worksheet "Summary" I have a summary of data of those worksheets. I want to change the worksheet number automatically in a row by dragging.
For example, in worksheet "Summary" ....

View 9 Replies View Related

Conditional Formatting : Changing Number Format

Sep 18, 2006

I would like to change the number format of a cell in function of the value of another cell. For example, if A1=1, then I would like the cell A2 to be displayed as a percentage. If A1=2, then would like the cell A2 to be displayed as a number.

View 4 Replies View Related

Excel 2007 :: Changing Number To Add Decimal Places

Jan 30, 2013

I am using Excel 2007 and importing a list of coordinates. The coordinates are in a text file and separated by commas, so I'm opening the file as a delimitted file. All of the coordinates import correctly except one. The value is supposed to 52530.6372, but Excel is automatically changing it to 52530.6371999999

If I manually type a "2" to replace the "1999999", it changes it back. If I type "3" it stays as a 3.

I added a round function to force it to round to 4 decimal places and that seemed to work until I then tried using the number with text commands. When I used an ampersand to insert the number into a text string, the additional decimal places are back, even with a round function!

View 1 Replies View Related

Variable Type Changing Number Of Decimal Places

May 14, 2014

Here's what I'm doing: I'm using a macro to assign a cell value to a variable then set another cell value to the variable instead of copy/paste (because even pasting values only was affecting other formulas in the file for some reason)

The problem: in using the macro, the number being 'copied' is acquiring a few extra decimal places IE 38334.61 is the original number and 38334.609375 is what I end up with. The numbers come from a CSV with only 2 decimal places and I checked by adding decimal places in the format so it's not a formatting/visible digits issue. Since the values are hour meter readings, the extra decimal places end up with very small values outside 0-24 hrs which messes with sorting and usage %. The values are so small all of them together in a month add up to a fraction of a cent but it's one of those things that bugs my OCD by not being right.

My VBA book explains the min/max capabilities, content type, memory bits but not fiddly details like this.

So my question is this: right now I'm declaring the clipboard-substitue variable as an single, is there a different one that would work better without adding anything? Criteria are: numeric, 6 digits before the decimal, 2 after, all positive values. (Ie 123456.12)

EDIT: fixed my senior moment.

View 6 Replies View Related

Macro To Lock A Number Cells After Changing A Cell

Jan 5, 2009

I have an excel sheet which is protected (mainly so that the users will not change any formulas) the excel sheet is basically a list

Just to put you in the picture
Column B Is PO Number
Column C Is Remarks
Column D Date
Column E Description
Column F Supplier
Column G Amount

I would like that when Column C changes to "OK Checked" column B C D E F G are protected and locked. But obviously for that particular row.

For example the input of Cell C15 changes to "OK Checked" then B15, C15,E15,F15,G15.
the macro must NOT be fixed to a particular row (in this case 15)

View 9 Replies View Related

Rewrite Line Of Code To Prevent Changing Number Format

Aug 5, 2007

The following block of code is evaluating the term in the array, if it exists and the value in col. M is a non integer, (which what I am testing for are fractions) then format the cell to a fraction number format.
That is ok, except it is changing the numberformat on text terms. I want it only to change the numberformat on numeric values.
I added the function Isnumeric to this line:

Isnumeric(cells(i, "M").value) Int(cells(i, "M").value)
which I thought would only evaluate numeric cells only, but this was unsuccessful.

Original Code: Unedited.

For i = 4 To LRowf
For Each Item In Array("HAT", "FTWR", "BOOT", "BOOTG", "BOOTY", "HWRISR", "HWBLTS")
On Error Resume Next
If (Cells(i, "F").Value = Item Or Cells(i, "G").Value = Item) And _
Cells(i, "M").Value Int(Cells(i, "M").Value) Then
Cells(i, "M").NumberFormat = "# ?/?"
On Error GoTo 0
Exit For
'End If
End If

Next Item
Next i

View 9 Replies View Related

Stop Formula Changing Cell Reference But Change Sheet Number When Dragged?

Feb 8, 2010

need to do to the below code so that when i drag the formula down it changes the sheet number....sheet1, sheet2, sheet3 and so on but keeps the cell reference the same?

View 4 Replies View Related

Changing Cell Color Based On Changing Values

Sep 16, 2009

This may have been answered on here but can not seem to find it. My situation is I have values in A1,A2 & A3 that are like counter reading so the value is always changing. What I am looking to do is change the cell color if one of the values is over 500 from the other two values. Say A1 is 3000, A2 is 3250 and A3 is 3500. I would like the cell for A3 to change color.

View 2 Replies View Related

Stop Procedure Window Changing When Changing Sheets

Sep 9, 2007

Moving between different sheets changes the procedure window, which is a good thing, but can also can be error prone and annoying to search through several windows searching for the procedure or module currently working on. Is there a setting somewhere to prevent VBE from changing the current procedure window?

View 4 Replies View Related

Save Number As Text In Txt Format Wo Changing The Format

Mar 1, 2007

In order to export an excel table into another program I first need to save the excel file as .txt. The .txt file can then be imported by the other program.

First I however need to make excel understand that the value should be a text and not a value. I therefore format the number as text (0000150235) by adding "0000150235". After saving the file as .txt the format changes from "0000150235" to """0000150235""". I do however need the format in the .txt file to be "0000150235". Can anyone tell me how I can save "0000150235" as .txt and get the value "0000150235" in the .txt file.

View 14 Replies View Related

Hyperlink To Cell But To A Cell With Changing Row Number

Oct 5, 2011

At the top of my worksheet, I have a summary table of four regions. These take subtotals from the rows below, which are grouped by each region

I would like to create hyperlinks in my summary table to then go directly to the row below it relates to, however, because I insert and delete rows, I'm not sure how to make my hyperlinks dynamic.

E.g. Four regions are A, B, C and D A is currently found in A10, B in A25, C in A40 and D in A60

If I insert 3 rows above row 15, A is still in A10, B is now in A28, C in A43 and D in A60 (to confirm, summary table and linked cells are all on the same worksheet)

How can I make the hyperlinks in the summary table change automatically so that when clicked it takes me straight to the new row location instead of the previous one?

Dynamic Link to Cell within worksheet

View 4 Replies View Related

Read The Number And Check For The First Number With The 2nd Number

Dec 16, 2008

I have this set of number..

987654.

What im trying to do is this..I read this number and check for the first number with the 2nd number. If its greater then i will swap it. Im trying to do this so that my number can be rearranged as 456789.

View 8 Replies View Related

Changing Another #DIV/0

Jun 15, 2007

i have a spread sheet that has data based off other data based off other data in a continuous cycle.. i know how to hide the #DIV/0 using VBA but what i want to do is change it to another name..such as N/A untill the data is being entered.

so #DIV/0- N/A

View 9 Replies View Related

Changing Mm/yy To Mm/dd/yy

Feb 16, 2007

I have imported data, in text format, that has just the month and year (02/09). I need to convert that to month, day and year(02/01/09). The day of the month isn't relevant, it can always be the first.

View 3 Replies View Related







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