473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How to convert excel formula to ms access

Hi there, need help in converting the excel fomulas to ms access.
=IF(C2<=0,IF(SUM(B$2:B3)<F$2,0,SUM(B:B)-F$2),"")
below is the data from query1 and query2

QUERY1
COLUMN ACOLUMN B COLUMN C
DATEPurchasedAvailable
cell2 September 30, 201050 0
cell3 December 31, 2010100 172*
cell4 January 01, 201110
cell5 January 02, 201150
cell6 January 03, 201150
cell7 January 04, 201112

QUERY2
DATE Consumed
23-Sep 100



Once the data was been updated in query2, Available will update and returns 0 if was been diispense

or theresany other way to compute this using SQL or code builder?...

please advise.. many thanks!
Sep 25 '10 #1
2 3690
Mariostg
332 100+
There is the Inline If (IIF) that works similar to IF in Excel, IIF(Condition,True,False)
Sep 27 '10 #2
colintis
255 100+
The QUERY you called should be TABLE instead, QUERY is the one that stores the SQL codes.

The excel formula you provide may not be possible to implement in SQL query, because SQL cannot specifically look for 2 rows from the table --> SUM(B2:B3). Either look for 1 specific record or a whole heaps of records from the table.
Sep 28 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: alphaomega3 | last post by:
I have a formula used in Excel that I am trying to convert for use in a query. the original formula is: ...
3
by: skiddle | last post by:
I've got an Excel formula that calculates the total business hours that a help desk ticket is open. As one would expect, it factors out holidays and non-work hours. What would be the corresponding...
2
by: welshkaiboy | last post by:
Due to the size of the data I have to manipulate I need to apply a excel formula in access which determines date of manufacture from a serial number 716001 so I use...
2
by: rtilson | last post by:
I am not sure why excel and access use the same method in formula. I am not access expert but been trying to figure it out. Here is the excel formula that I would like to use in access expression...
0
by: Lina Arraiz | last post by:
I'm trying to export an Excel 2003 spreadsheet to Access 2007. I need to calculate the time elapsed between column D (START) and column E (END) with the results appearing in column F (TIME). The...
3
by: david sherman | last post by:
Does software converting excel to access with financial functions exist? I need to take several fixed income portfolio run manually from excel and create a database. The excel relies heavily on...
21
by: Sabrina Smith | last post by:
I am not a programmer - so I don't know code, however, I do need some help if anyone can oblige me... I have a project that requires me to add 4 workdays (excluding holidays) to a beginning date...
13
by: Cayetano | last post by:
How can I get this excel formula to work in access I know that the field name replaces the cell reference? Example: Clock In Clock Out = Total Time Worked ...
10
by: Cayetano | last post by:
I created a table that has a field name InTime and a field name OutTime with a calculated field name TotalTime. Now I need to create a calculated field name TotalUnits. I need to convert the excel...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.