Plus Or Minus Sign In The Beginning?

Jul 29, 2008

I want to save phone no as +99 9876543210 in excel 2003 on my xp pro machine. But if i give a + sign in the cell, some blue dotted rectangle shows up and everything messes up.. I think it is treating it as a formula or something... how can i save this in the cell. tell me in detail if you are going to tell me about macros or vb code as I don't know how to insert code or program macros.

View 3 Replies


ADVERTISEMENT

How To Show Minus Value In A Formula As Plus Sign

May 31, 2014

I have attached here an excel sheet with some data. I need to show the minus value in D5 as a plus sign, is there any conditional formula to work this out??

View 4 Replies View Related

Inserting Minus Sign In Front Of Numbers In A Range

Mar 19, 2009

i want to know how to prefix a minus sign (-) before numbers in cells in a large range.i m working on a large sheet containing the Numbers with Cr and Dr as suffixes just like 445Dr ... 3331Cr and so..on... in the worksheet

i want to know the method of deleting the suffixes and prefixing - sign infront of numbers having Cr as the suffix.

Numbers with Dr as suffix denote positive numbers
and numbers with Cr suffix denote negative numbers. i want to prefix the -minus sign in front of numbers having Cr in the end.

View 8 Replies View Related

Minus Sign - Turn Into Negative Number Without Manually Keying Each One?

Feb 14, 2013

I have a column of numbers which have the - sign at the back end of the number instead of the front. What would be the easiest way to turn that into a negative number without manually keying each one?

View 4 Replies View Related

Decimal Sign Replaced With ';' Sign

Dec 8, 2009

I'm trying to solve a strange problem in a piece of code.

I have a variable that is define as Double called STD. When i try to insert that variable in a formula the decimal sign (for me a comma "," because I'm Portuguese) gets converted to ";" (which is for me the separation sign for the expressions in excel formulas. ex: AND(A1>0;B1>0)=TRUE). The code is:

View 4 Replies View Related

Plus Sign And Equals Sign In Formulas

Sep 29, 2006

My boss uses the + symbol and the = symbol in his formulas eg "=+E3*E4" What is the advantage or difference in this as to just using "=E3*E4"

View 3 Replies View Related

Plus Sign After Equals Sign In Formula

Jan 10, 2008

In a formula, what effect does putting a plus sign after an equals sign? e.g.
=+((1+B8)^12)-1. I orginally assumed that it made sure that result the would always be positive but I was wrong.

View 2 Replies View Related

Count The Number Of Entries For Only Those Beginning With "AA" Or Beginning With "BB"?

Feb 17, 2010

In column A, I have many entries such as AA-1, AA-2, BB-1, BB-2, AA-3, etc.

How do you count the number of entries for only those beginning with "AA" or beginning with "BB"?

View 3 Replies View Related

Replace - At End With - At Beginning

Oct 30, 2008

I am being passed a series of positive and negative numbers in a column - the only problem is that the negative numbers have the - at the end of the series i.e.1234-.Is there someway I can change this with a macro so they read -1234.

View 3 Replies View Related

A Number Beginning With A Zero

Feb 14, 2007

I need to put in a list of telephone numbers

i.e 01 is the std and 12345 is the number.

I need it to look like 0112345 but excel automatically removes the zero at the start of the number.

View 9 Replies View Related

Next Sheet From End To Beginning

Mar 8, 2009

I have the following macro........

Dim i
If ActiveSheet.Index = Sheets.Count Then Exit Sub
For i = ActiveSheet.Index + 1 To Sheets.Count
If Sheets(i).Visible = xlSheetVisible Then
Sheets(i).Select
Exit For
End If
Next

This macro starts at which ever sheet I am on and goes from front to end say 1 to 16.....my question is how do reverse the code to go to the next unhidden sheet from 16 to 1 ?

View 9 Replies View Related

Add A String At The Beginning And End

Dec 5, 2009

I have a column with data and I want to add, in each row, the following:

at the beginning of row:{color=blue}
and right at the end of the row: {/color}

so that

excel

becomes

{color=blue}excel{/color}

I tried to do this with the formula:

"{color=blue}"&A1&"{/color}"

which yields nothing.

View 9 Replies View Related

Add New Worksheet At The Beginning Of Workbook Not The End

Mar 5, 2014

I have some code that adds worksheets to a workbook and names them appropriately, I now need to change that to add the worksheets at the beginning of the workbook and am struggling with the syntax.

My first sheet is sheet1.

I need to change this piece of code

Sheets.Add After:=Sheets(Sheets.Count)

View 2 Replies View Related

Move Text From End Of String To Beginning

Jun 28, 2013

I have a column which contains a series of alphanumeric characters some start with the alpha characters and others end with them.

As an example ABS1234, 1234ABS, 12k34AB needs to be ABS1234, ABS1234, AB12k34. The number of alpha characters at the end will be a minimum of 2 and a maximum of 3. Is there some way that I can move the Alpha characters, at the end, so that they are always at the beginning of the string?

View 4 Replies View Related

Split Numbers From Beginning Of Text?

May 4, 2014

I have lost the formula for this looked everywhere, I have Content that looks like this e.g 1dg, 15gh, 8fj, 20lk,

I reqiure the formula to split the number into another cell(numbers will be no more than 2 digits), I already have the formula for the letters.

View 6 Replies View Related

Adding Spaces To Beginning Text

Apr 5, 2013

I want to add blank spaces to a cell with text

My cells have up to 14 spaces
If a cell as 1 or 2 characters -I want to add 6 spaces in front of text.
If a cell as 3 or 4 characters-I want to add 5 spaces in front of text.
If a cell as 5 or 6 characters-I want to add 4 spaces in front of text.
If a cell as 7 or 8 characters-I want to add 3 spaces in front of text.
If a cell as 9 or 10 characters-I want to add 2 spaces in front of text.
If a cell as 11 or 12 characters-I want to add 1 spaces in front of text.

View 4 Replies View Related

Macro For Naming Tab And Moving It To The Beginning

Mar 17, 2014

I have the code below to add my new sheet and give it todays date (coming from the menu sheet). However I can not figure out how to add the before code so it will save the new sheet at the beginning of all of the sheets every time.

[Code] .....

View 7 Replies View Related

Entering Data From Top / Beginning Of List

Feb 10, 2012

I am trying to create a list of customer credits for my store. I have the person's name, the date of their credit, and the amount of the credit. This list will eventually be substantial and I would like to know how I can set it up so that when I open the worksheet I can enter new names from the top of the list and have the rest of the list shift downwards. This would stop me from having to scroll to the very bottom to add new info every time.

I would like to have it set up this way so that eventually I could put a search query at the top of the page (i'm thinking of rigging something up using vlookup) so that when my employees want to access the data base they can easily search a name and have the relevant info brought up, or can easily type in new store credits.

View 2 Replies View Related

Append Text At The Beginning Of TXT File

Nov 28, 2013

I have a simple code that should insert the text at the beginning of the text file (the text file already has some text in it). When i use the following code, it just appends the line to the end of the text. I need it to append it to the start of the text file.

Code:

Private Sub CommandButton1_Click()
Dim file As String
lastrow = Range("D65536").End(xlUp).Row - 4
file = "C:Users11126923Desktop est.txt"
Open file For Append As #1
f = "hi test3"
Print #1, f
Close
End Sub

View 2 Replies View Related

Find Beginning And End Of Named Range

Oct 31, 2008

In VBA, does anyone know how I can find the beginning and end of a named range?

eg: Range "CellsToTotal" is A1:A10, if I know only the name of the range, can I retrieve both A1 and A10 values?

What I have done is named a range on the fly as so (where vStartCellCoordinates and vEndCellCoordinates are both variables holding 2 ints):

ActiveWorkbook.Names.Add Name:="CellsToTotal", RefersTo:="=" & Cells(vStartCellCoordinates(1), vEndCellCoordinates(2)).Address
What i'd like to do is then set a third arbitrary cell to sum up the range as a formula (note the following is a wierd adapted pseudocode thing):

Cells(iRow, iCol).Value = "=sum(" & start(Range("CellsToTotal").Address(0, 0) & ":" & end(Range("CellsToTotal").Address(0, 0) & ")"
How can I make this work?

View 9 Replies View Related

Current Week Beginning And End Date

Apr 20, 2009

Is there a snatch of macro that can assign two variables with the date for the beginning and ending date of the current week?

I need
A= 4-19-2009 12:00AM
and
B=4-25-2009 11:59 PM

Based on the current week being week 16, with the variables changing as the weeks progress.

View 9 Replies View Related

Offset Active Cell To Beginning Of Row

Jul 28, 2006

I need to make the active cell go to the beginning of the row (Column A). I tried setting up a variable to be the row.value, but that didn't work (the way I wrote it, which doesn't surprise me).

View 6 Replies View Related

Loop Beginning With Current Year

Feb 16, 2007

I would like to begin a loop with the current year, and then go down to 2000. I just can't figure out how to put the current year in there.

Sub YearCountDown()

Dim fyear As Integer

fyear = year(Now) + 1 'This does not work??

Do
fyear = fyear - 1
'REST OF CODE
Loop Until fyear = 2000

End Sub

View 4 Replies View Related

Restart Macro Sub Procedure From Beginning

Jun 26, 2008

When I run the following code, if "If exists = True" then I want the routine to start again at the very beginning. Currently, 'as is' it re-starts at the beginning but enters a loop on itself; I understand why this is but it's not what I want but can't get round this! How do I make the "If exists = True" condition (if true) restart the routine - ie call AllNEWActions() without then going into a loop on itself? NB: I can't use "Exit Sub" (see it commented out) as I don't want to exit routine, just restart it.

Sub AllNEWActions()
ShowCalendar
GetDateFromCalendar
SheetAlreadyExists
If exists = True Then
boolRestart = True
AllNEWActions
' Exit Sub
Else
MsgBox (" Date selected/new sheet doesn't exist")
InsertNewSheet
End If
If boolRestart = False Then
ShowCalendar
GetDateFromCalendar
End If

MsgBox ("Do something ...)
End Sub

View 2 Replies View Related

VLOOKUP Using Text Lookup Field Beginning With Zero?

Mar 13, 2014

Having difficulty with a VLOOKUP that uses a text lookup field beginning with 0. For all the other numbers formatted as text I use this function:

[Code].....

For the one that begins with a 0 I have to use this function:

[Code] .....

This is a problem for me, because I need to be able to copy the top function to all of my sheets without having to edit the ones where the lookup field begins with 0. I could alter my VBA to specifically search for those cases and adjust, but that seems unneccesary.

More info - The beginning column of the Table Array (i.e. the lookup field I'm searching for) is a function of another cell; both cells are formatted as text. Here is the function:

[Code] ....

I have to put a single quote in front of the lookup field, so that "064" is not displayed as "64" even if the cell is formatted as text. I have another instance where I am looking up "'791" and it works fine with the first VLOOKUP above. Even if I remove the single quote this will work. However, once there is a leading zero the function no longer works and I must use the second VLOOKUP listed above.

View 3 Replies View Related

Removing Blank Spaces From The Beginning Of Cells

Jun 16, 2009

I'm compiling several old worksheets into a single database for a research study. The worksheets contain patient data. Some of the worksheets have the patient's last name, first name, and middle initial entered all in one cell like this: Smith,John R. Compounding the problem is the fact that sometimes the name is entered with a space between the comma and the first name, sometimes not.

I have formulas to break the name out into three separate columns "lName, "fName", "midInit". However, if the name in the original cell has a space between the coma and the first name, then the “fname” column will contain a blank space in front of the name. This is problem because patients names can appear in the database more than once. Some patients are in the database several times.

If patient “John R. Smith”, for example, is entered in the database as”

“Smith” “John” “R “

and also as

“Smith” “<space>John” “R”


then the database won’t recognize them as the same name when I search for John Smith’s data. Right?

If so, then I need a way to eliminate the empty spaces in front of the first names. Like I said, some have empty spaces and some don’t. I could do this by hand, but there are over 1000 entries in these worksheets.

View 2 Replies View Related

Adding Zeros To The Beginning Of String Of Numbers

Aug 12, 2013

I need to add zeros to the beginning of string of numbers in column A (given below), for e.g., 000029, 002562, 015096:

A
29
2562
15096
286
1

View 3 Replies View Related

Deleting Signs Or Letter In The Beginning Of A Column?

Nov 29, 2007


I have many excel wordlist, which are being converted from other file formats. Now there are sometimes useless spaces before entries in the cells. There are also some times commas and other not needed signs at the beginning of a cell in a column.

I need a macro, which removes spaces, symbols, letters, numbers or combination of them from the beginning of all cells in a column. The symbols should be chosen before the macro starts its work.

For example:

Before running the first macro:

Column A
,Word1
,,Word2
Word3
,Word4

After running the macro the beginning should be cleaned from chosen symbols, spaces or signes. (in our example if a cell begins with , then the commas should be deleted).

Column A
Word1
Word2
Word3
Word4

View 12 Replies View Related

VBA Code To Cut The Last Character Of A Cell And Paste It At The Beginning

Feb 18, 2010

In any cell of a worksheet, the user can input a number followed by either a plus or minus sign. After the - or + key is pressed, the cell has to move the plus or minus to the front of the number, then move down one cell. So input in cell A2 would be 125+, that needs converted to +125 and then moved down to cell A3.

View 3 Replies View Related

Append Number To Beginning Of Files And Folder?

Aug 24, 2013

Is there a way to rename every file in a folder and subsequent sub-folders to begin with a number in memory? Say my number in memory is 5000, I'd like all the files to be renamed something like this:

5000Picture.jpg
5000bookreview.txt
5000startmanual.img
5000HighFive.mov
-->5000SUBFOLDER01
----->5000SUBFOLDER02

View 1 Replies View Related







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