LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Snagged by the double negative!

Put -1 in an unused helper cell.
copy that cell

Select your positive numbers
Edit|paste special|check multiply.

clear that helper cell

Nadine Rose wrote:

does anyone know a quick way to change a positive number into a negative
number?

"Dave Peterson" wrote:

You may want to read about how excel treats dates (and times, too) at Chip
Pearson's site:

http://www.cpearson.com/excel/datetime.htm

I don't understand how 105 could be change to a date (june 10, 1935) without
some kind of "help".

Maybe you could use a custom date format that:

dddd* mmmm dd, yyyy

I think it's unique enough to never be touched by the OS/excel.

jenelle wrote:

Dave,

You've got it! This phrase contains 2 concepts, which confounds me, and
I've been a software writer/user for 25 years:

Date formats display date and time serial numbers as date values. Except for
items that have an asterisk (*), applied formats do not switch date orders
with
the operating system.

I never understood the serial thing; some columns in my form that have
numbers automatically converted to this serial date concept; for example, an
entry 105 (for a regulation) would display as June 10, 1935. I'm challenged
to overcome that as a separate issue.

The 2nd piece of information (the double negative) could be expressed as:

For items with an asterisk (*), date orders established by the operating
system (see XYZ tab of ABC dialog box) take precedence over Excel settings.

"Dave Peterson" wrote:

Are you positive that the format is mm/dd/yyyy?

If you are, could you try a different format for that column: mm.dd.yyyy

You may have been hit by a coincidence.

When you do Format|cells|Number tab and look at that cell's format, I'm betting
you see something like:

*14/03/2001

That asterisk means that you chose a short date format that is picked up from
the Windows Regional settings (Date tab).

xl2002 is more honest with the way it deals with dates.

At the bottom of that dialog (xl2002):

Date formats display date and time serial numbers as date values. Except for
items that have an asterisk (*), applied formats do not switch date orders with
the operating system.

Since yours is marked with an asterisk, your date will switch formats with the
setting in the OS.

======
If the mm.dd.yyyy worked, try changing your short date in your regional
settings.

=====
You could also give the cells a custom format (just slightly different from the
short date format in regional settings):

"mm/dd/yyyy "
(w/o the quotes, but with the trailing space.)

jenelle wrote:

When enabling the Dim statements, my dates don't work. When disabled, I get a
date, no problem. Wierd thing is that one date is mm/dd/yyyy and the other is
mm-dd-yyyy AND, when they get ported to spread sheet (both formatted as
mm/dd/yyyy date columns), they display in the format 11-Jan-2005.

I added a second line after datInitDate = Date$ as
datInitDate.Value = Format$(datInitDate, "mm/dd/yyyy")
and that took care of the / vs - issue in the form.

The dates display correctly in the formula bar (mm/dd/yyyy), but in the
cells, they are
dd-mmm-yyyy, even though the date columns are ALSO formatted as
mm/dd/yyyy...when I check the format of the added cells they are in the
10-Feb-2001 format.

I'm really lost...any ideas?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a subroutine using variable subroutine name dhstein Excel Discussion (Misc queries) 3 July 26th 09 08:28 PM
Calling a function from a subroutine loop Dan Excel Programming 1 November 27th 04 01:28 AM
calling a subroutine outside a spreadsheet dino Excel Programming 5 June 11th 04 06:14 PM
Function Calling Subroutine Curare Excel Programming 1 February 24th 04 07:11 PM
Calling the Solver via a subroutine James[_8_] Excel Programming 1 July 10th 03 01:08 AM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"