Solved

Convert Excel Formula to Access =FLOOR(SUM(NOW()-P2),1), =Current(I2:N2), =age(O2,G2, J2:M2), =SUM(H19+K19+M19)

Posted on 2006-07-20
5
397 Views
Last Modified: 2008-03-06
Hi I inherited this spreadsheet and I need to have the same functionality in MS Access.  It is used to determine vehicle pricing and dates in inventory.  The pricing person quit yesterday and I know nothing about formulas but here they are:

Age
=FLOOR(SUM(NOW()-P2),1)

Current
=Current(I2:N2)

Status
=age(O2,G2, J2:M2)

Basic Sum
=SUM(H19+K19+M19)

Column Headings are A through X
Franchise      Stock      Desc      Certified      Color      Mileage      S.L.      Cost      Initial      1st      2nd      3rd      4th      Last      Age      Entered      Leaving      Current      Status      Blue Book      AcutalDesc      Year      Sold      Payment
Toyota      11223648      01 CENTURY            SILVER      62      60      $5,673      $7,233                                    48      6/2/06      1-Aug      #NAME?      #NAME?      $7,925      BUICK CENTURY      2001            148-158
Volvo      12036943      01 S60            ASH GOLD      44      60      $14,161      $16,780      $16,550      $16,056                        308      9/15/05      14-Nov      #NAME?      #NAME?            VOLVO S60      2001            
Ford      12314462      01 C2500            RED      86      60      $10,195      $13,826                                    23      6/27/06      26-Aug      #NAME?      #NAME?      $15,310      CHEVY C2500      2001            297-307

I'm trying to look this up and figure it out myself but if ANYONE CAN HELP PLEASE!
0
Comment
Question by:lorijgreen
  • 3
  • 2
5 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 17147485
Hi,
I believe the equivalents are:
1. =Int(Now-[Entered])
2. Current is not a built-in worksheet function - there must be some code in your workbook.
3. The same applies for Age - not an Excel function.
4. =[Cost]+[2nd]+[4th]
HTH
Rory
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 17147509
PS:
I suspect that Current would be something like:
=Nz([Last],Nz([4th],Nz([3rd],Nz([2nd],Nz([1st],Nz([Initial],0))))))
Regards,
Rory
0
 

Author Comment

by:lorijgreen
ID: 17148388
Hi Rory,
I have to go kick my user out of the database so I can try =Nz([Last],Nz([4th],Nz([3rd],Nz([2nd],Nz([1st],Nz([Initial],0))))))
out.
From my very limited understanding all I have to do is create  new module with that correct?
I will also check the spreadsheet to see where he has hidden any other coding.
I am so kicking myself for not taking any access classes.  I feel so stupid.
thank you so much.
lori
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 17148771
Lori,
No, you would just enter that in a query grid. Nz is a built-in function so no code required.
HTH
Rory
0
 

Author Comment

by:lorijgreen
ID: 17203901
GOT IT! THANKS SO MUCH.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now