Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > NeoOffice Spreadsheet Formula...

NeoOffice Spreadsheet Formula...
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 7, 2008, 04:00 AM
 
Hey
I have a spreadsheet in NeoOffice that has a column of dates.
Is it possible to come up with a formula for the next column over, that will display the number of days between [NOW] and the date in the previous column? This would be very handy. thanks.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Mar 7, 2008, 08:00 AM
 
If the cells are set to date format, then you can calculate differences between dates simply by subtracting one from the other. Then the question is how to set a cell to "now." That I'm not sure. Have you checked for a function, like DATE() or something?
     
Addicted to MacNN
Join Date: Mar 2006
Status: Offline
Reply With Quote
Mar 7, 2008, 10:20 AM
 
I don't know NeoOffice that well, but I'm presuming it has the same functions as Excel - there will be a function called NOW, or something like that, and a formula for calculating dates - have you poked around in the formula section?
     
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Mar 7, 2008, 12:02 PM
 
In Excel:

=NOW()-A1

will give you the difference in days between today and the date in cell A1.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 7, 2008, 12:53 PM
 
B2 = NOW() - A2
where A2 = 3/6/08
B2 = 12/31/99

wtf? NOW() along does give me todays date.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 7, 2008, 01:12 PM
 
=ROUND(DAYS(NOW();A2))

OK This is the last formula i came up with. It actually works in the 'formula builder' thing, but in my spread sheet, it gives me a date, now 1/1/00. In the formula builder it tells me '2' which is the right answer.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 7, 2008, 01:14 PM
 
OK i got it. Formatting is kind of weird, the column is formatted as a number, but the individual cell was still formatted as a date. strange.
     
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Mar 7, 2008, 04:44 PM
 
Excel likes to take a guess at how you want your cells formatted. You are subtracting two dates, so it guesses you need it formatting as a date. A bit strange, but sort of logical.
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Mar 7, 2008, 04:59 PM
 
Except that I008com is using NeoOffice
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 12, 2008, 10:54 PM
 
I'm back. Hows about getting the sum of an entire column? Clicking on the column header while editing the formula doesn't do anything.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 12, 2008, 10:56 PM
 
also, why would this formula be giving me "#VALUE!" ???

=SUM((C4:C53)*50)
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 12, 2008, 11:07 PM
 
Originally Posted by l008com View Post
=(SUM(C4:C53)*50)
Fixed for ya !

-t
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Mar 16, 2008, 02:09 PM
 
Originally Posted by l008com View Post
also, why would this formula be giving me "#VALUE!" ???

=SUM((C4:C53)*50)
That occurs when the column isn't wide enough to display the result, fwiw.
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Mar 16, 2008, 06:05 PM
 
Originally Posted by JKT View Post
That occurs when the column isn't wide enough to display the result, fwiw.
Are you sure ?

Because this is definitely a formula error in Excel.
The syntax of the formula is wrong.

-t
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Mar 18, 2008, 06:29 PM
 
My mistake - you're right - it is ### when the column is too narrow for the value.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:13 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2