473,385 Members | 1,356 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,385 software developers and data experts.

How do you replace a SUMIF function (from excel) into Access?

I currently have a SUMIF function (in Excel) that looks like this (=IF(R1061=0,SUMIF($S$99:$S$19626,S1061,$P$99:$P$1 9626),.
If it helps any it represents this (=IF(WeekEndDate=0,SUMIF($(PO#)$99:$(PO#)$19626,(P O#)1061,$(Amount)$99:$(Amount)$19626),)
So what it does is sum the amounts for every line that has that PO# if there is no week ending date listed, otherwise it leaves a null value.

I'm a beginner at best to Access, and am much more versed with Excel so forgive me. I am trying to import my excell database (which has grown much too large to continue using Excel) and this is the biggest barrier to entry for me.

From reading around the web (this site included) all I came up with was a function around the lines of IFF([Week End]=0,SUM([PO #],[Amount]),null) however, that doesn't A.) work and B.) exactly duplicate my previous function at all. Any help would be greatly appreciated
May 9 '13 #1
1 1564
Rabbit
12,516 Expert Mod 8TB
You're doing this in an aggregate query? No need for a sum if, just filter out the records you don't want to sum on.
May 9 '13 #2

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

Similar topics

9
by: BCS | last post by:
I have a web site in which the site administrator can input information to a database through a web form. The information then gets displayed on ASP pages. One field is a large text field. Of...
8
by: UDBDBA | last post by:
All: Anyone had bad experience with doing DECLARE DGTT "WITH REPLACE" option? The suggested workaround was to do "DELETE FROM DGTT" sql statement. We are seeing DGTT performance issue when...
2
by: Jeff Marcum | last post by:
I need to write a query in Access that returns the results of a text field with the spaces replaced with underscores. So, if the data in the field was 'hello world', the query results would show...
4
by: java.koder | last post by:
Hello all, I am making a simple msAccess aplication for some construction calculus, I need however to calculate a parameter from an equation and I am told this can be made with the solver...
3
by: NewToCPP | last post by:
I am trying to access a base class's virtual function from the drived class function. It is complaining that the function is not static. Can anyone tell me what is the problem in the below given...
2
by: JawedAkram | last post by:
hi Can any one tell me how can i call a function from another database. regards
2
by: TMINGO | last post by:
Can you give me steps on how to import a table from excell to acess
2
by: Aniasp | last post by:
hi Please let me know the procedure to post data from MS-Access to MS-Excell using ASP ! as well as Excell to Access ! Plz ! Thanks.
2
by: gumby | last post by:
I would like to call this stored procedure, but I am unable to pass parameters to the @Start and @End. Is thier a way to pass parameters to a pass through query from MS Access? SELECT ...
3
by: ashokd001 | last post by:
Hi, How do i read time field from excell sheet by python. I am getting "0.400694444444" value but sheet has "9:37:00 AM" . How to convert it ? Regards, Ashok
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.