Countif function help
Having difficulty with the Countif function.
This works:=COUNTIF(Focal Length,B2) (gives me the count of numbers equal to 14 which is in B2)
and This works: =COUNTIF(Focal Length,">14") (gives me the count of numbers greater than 14)
but this does not:=COUNTIF(Focal Length,>B2)
Nor does this: =COUNTIF(Focal Length,">B2")
the two that don't work give an error saying there is a syntax error as opposed to an incorrect count.
At a loss as to what I'm doing wrong. B2 does contain the number 14 (formatted as a number)
For what it's worth analyzing some EXIF data pulled from Aperture, looking at the most common focal lenght I use.
Any help appreciated,
Thanks
Rick
Hi Rick,
The 'condition' in SUMIF must be expressed as a text string.
">14" works because the text string correctly expresses the condition 'greater than 14'
>B2 fails because the operator ">" is not interpreted as text, as required.
">B2" fails because "B2" is text, and is not interpreted as a cell reference.
">"&B2 works because the text string ">" and the result returned by the cell reference B2 (14) are joined by the concatenation operator & into the text string ">14"
All very complicated (at least until you've written a few SUMIF statements).
Regards,
Barry
Similar Messages
-
Want to count checkboxes in number on the iPad, but cannont figure out the function. There is no Countif function like on the desktop. I've tried a number of varieties of count plus if and could not get it to count the checked boxes in my specified range. Help!
I don't have my iPad with me right now but according to this link there is a COUNTIF function.
http://www.apple.com/ipad/from-the-app-store/numbers/functions.html -
Can't address a cell using CountIF function
I've worked on a data set of historical temperature records (4656 in all). I am trying to generate a bell curve graphic. In order to do this I need to establish the range of temperatures, and the frequency of each temperature in that range.
I decided on three columns, Column A (the data set of 4656 entries), Column B (the range of all temperatures found in the data set), and Column C (the frequency of each temperature in the range.
To find the frequency I am using the following flawed formula: =COUNTIF($A$2:$A$4656,"=-4")
My problem is that this only works if I manually insert a particular temperature from the range, like -4° F displayed as the example test criteria "=-4"
There should be a way to reference a relative cell, rather than manual editting each formula. I would expect it to be: =COUNTIF($F$2:$F$4656,=A2)
But that generates a red triangle error message. Any thoughts on how I could do this smarter?Hello
- 1 - NB.SI is the frenh name of the COUNTIF function.
- 2 - I don't know which version you are using. For the french one arguments are separated by semi-colons while for the US one they must be separated by commas.
Perhaps are you working with an other language.
You will be able to find it in the help searching for the local equivalent of "fonctions statistiques"
You may also send a mail to:
koenig PERIOD yvan AT tele2 PERIOD fr
I will be able to send you the sample file which will be automatically localised when you will open it.
Yvan KOENIG (from FRANCE mercredi 31 octobre 2007 21:22:15) -
Hi all, sry for post sql problens in APEX forum, but i realy need help for this...
I´m trying to replace : for , to make a select where in () with more then one value... but the replace function its not work with more then 1 value...
like this
select name from vw_requerente where id_cliente in REPLACE(:P5000_CLIENTE,':',',')in that item has this value: 71:72:73 , but all i get is a ORA: INVALID NUMBER, how can i make a replace function to work with this?
tnks alot and sry my english.He also posted this in the pl/sql forum and received some good advice there:
replace function help
Especially the tom kyte blog portion:
[http://tkyte.blogspot.com/2006/06/varying-in-lists.html]
Thank you,
Tony Miller
Webster, TX -
How Queues functionality helps in Service Module
Hi,
How Queues functionality helps in Service Module.
how to get the queue details assign to the service call(Technician)
Please Suggest
Regards
VikramSridharan,
How to add technician to a queue.
Employee should be user of SAP?
Please Suggest.
Vikram -
2/3/14: I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function help", it starts to load the "help" then quits. It happens on both my ipad3 & iphone5. I tried restarting the devices but it didn't help.
Try this - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
iOS 7: Help with how to fix a crashing app on iPhone, iPad (Mini), and iPod Touch
http://teachmeios.com/help-with-how-to-fix-a-crashing-app-on-iphone-ipad-mini-an d-ipod-touch/
Troubleshooting apps purchased from the App Store
http://support.apple.com/kb/TS1702
Delete the app and redownload.
Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
http://support.apple.com/kb/ht2519
Cheers, Tom -
Need PP Functional help for some legacy fields
Hi all,
I am a BW consultant. I need to replicate in SAP-BW some reports that are currently in a legacy system (non SAP). I have identified the functional area for those reports as PP. I need a little functional help from you guys to find out what some fields in the legacy system mean in SAP. Once I know the R/3 fields (and source tables if someone can tell me), I can move forward with mapping those fields into BW objects and the rest of the process.
The reason why I am seeking help from here is, unfortunately our functional team is not available right now and their availability is indefinite. So I just want to keep myself busy till they are back.
Well, here are the fields that I need help for (for now)
The report is for Daily summary of activities at a plant
Work order process
Work order type
Daily Created Bags
Daily Capacity Bags (Bags per Hour Rate* Available Hours)
Daily Count of Work Order Number
Goods issued for work order completion
Goods finished
Please help me identify what R/3 fields (and their tables) correspond to the above legacy fields
Points WILL be assigned for helpful answers
Thank youHi,
Work order process - I assume this is the set of operations for the order - AFVC (table)
Work order type - AUFK - (Field) AUART data needs to be fetched for AUFNR(Work order number)
Daily Created Bags - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
Goods issued for work order completion - MSEG- data needs to be fetched for BWART = 261 and AUFNR(Work order number)
Goods finished - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
Regards,
Prasobh -
Simple Function Help - Counting the amount of a certain value in a table.
I have a table of data, what function will I use to work out how many, for example 'dfjhg' there are, or how many 'B 4' there are.
Hi iMac '08,
Welcome to Numbers discussions.
The answer is =COUNTIF(cell range,"enter what you're counting for")
That should get you in the correct direction.
Also allow me to suggest you looking in Numbers Help for Statistical Functions.
These Discussions are enduser helping enduser, not Apple employees answering questions. Questions will be answered when a enduser such as yourself finds time, desires to, knows the answer along with the time to respond.
Again welcome to Numbers discussions, have fun here.
Sincerely,
RicD -
IP-Planning Function Help!! Is this possible?
Dear Experts,
I am relatively new to IP and I want to check if this is possible. I would like to copy a Keyfigure value from one Aggregation level to another Aggregation level.
Here is my scenario.
I have an Aggregation level 1 where it has characteristics Product Group, Year, Version and Percentage. So the planner would plan as
Product Grp-Year-Version---Percentage
GROUP1-2010-100---10%
GROUP2-2010-100---20%
GROUP3-2010-100---15%
Now I have another Aggregation level 2 where it has characteristics Product Group, Product, Year, Version and Cost. I would want the Percentage value which was planned in Agg. level 1 to be copied to all the products in that group. My Planning book would look like
Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
GROUP1-PRD1-2010-100-10%-$100-$110
GROUP1-PRD2-2010-100-10%-$200-$220
GROUP1-PRD3-2010-100-10%-$300-$330
GROUP2-PRD4-2010-100-20%-$1000-$1200
GROUP2-PRD5-2010-100-20%-$2000-$2400
GROUP2-PRD6-2010-100-20%-$3000-$3600
GROUP3-PRD7-2010-100-15%-$1000-$1150
GROUP3-PRD8-2010-100-15%-$2000-$2300
GROUP3-PRD9-2010-100-15%-$3000-$3450
Currently The above products already exist in the cube but the Percentage value for them is blank. When the user saves the first planning book I would want the Planning function to be executed and change the percentage value of each product based on the Prodcut group it belongs to. Also I want the Plan cost to be calculated with the percentage value and the standard cost.
Now when the Planned opens the second planning book he can see the Plan cost already calculated based on the percentage value. However, I will provide an option to the user to change the Plan cost if needed.
Important thing for me to know how I can take the percentage value from first few records and change the value of percentage in the second set of records for each product based on its product group.
Hope my explanation is clear and it is possible to do it.
Thanks for your inputs.
KKHey Andrey, I have tried in several different way but was not able to achieve this. My Stupidity!! I am new to IP and this is the first time I am using Fox formulae and this is driving me crazy. I think its just a basic understanding issue.
I just want to reiterate whay I exactly wanted. Could you please help me with the code.
Here is the current data in the planning cube. The first 3 rows are planned from a planning book. The rest of the rows are loaded from a flat file. When the planning function is executed we would want to take the percentage from the Product group and assign it to each product in the rest of the rows there by calculating the Plan cost.
Current/Before executing Planning Function.
Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
GROUP1-#-2010-100-10%-00-00
GROUP2-#-2010-100-20%-00-00
GROUP3-#-2010-100-15%-00-00
GROUP1-PRD1-2010-100-00-$100-00
GROUP1-PRD2-2010-100-00-$200-00
GROUP1-PRD3-2010-100-00-$300-00
GROUP2-PRD4-2010-100-00-$1000-00
GROUP2-PRD5-2010-100-00-$2000-00
GROUP2-PRD6-2010-100-00-$3000-00
GROUP3-PRD7-2010-100-00-$1000-00
GROUP3-PRD8-2010-100-00-$2000-00
GROUP3-PRD9-2010-100-00-$3000-00
After executing Planning Function
Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
GROUP1-#-2010-100-10%-00-00
GROUP2-#-2010-100-20%-00-00
GROUP3-#-2010-100-15%-00-00
GROUP1-PRD1-2010-100-10%-$100-$110
GROUP1-PRD2-2010-100-10%-$200-$220
GROUP1-PRD3-2010-100-10%-$300-$330
GROUP2-PRD4-2010-100-20%-$1000-$1200
GROUP2-PRD5-2010-100-20%-$2000-$2400
GROUP2-PRD6-2010-100-20%-$3000-$3600
GROUP3-PRD7-2010-100-15%-$1000-$1150
GROUP3-PRD8-2010-100-15%-$2000-$2300
GROUP3-PRD9-2010-100-15%-$3000-$3450
This is what I would expect after executing the planning function. Could you please help me with the code. What needs to be selected as the Characteristics to be changed and the Key figure and if I have to select any characteristics for conditions.
Thanks in advance for your help!!
KK -
"Read From Binary File" function Help ambiguity
I must be getting tired, but for some reason a doubt crept in my mind as I was designing a new piece of code this morning:
"is the "Read From Binary File" using the last file position or is it starting from the beginning of the file?"
"That's a stupid question", I told myself.
"I used this function a million times and have always assumed it is reusing the last file position. Moreover, there is no file offset input to that function, so WTH am I afraid of?"
So, for kicks, I fired up the Help window and read the following description (*):
Reads binary data from a file and returns it in data. How the data is read depends on the format of the specified file. This function does not work for files inside an LLB.
(*) BTW, has anybody ever complained that you can't select and copy anything from the floating Help Window?
Not much there. I particularly admire the phrasing of the second sentence... What about: "This function can do a lot of things, but it would much to complex to describe this is extensive details, so if you are asking, you probably can't afford using it"?
Anyhow, I clicked on the "Detailed Help" and got this (among other things):
Use the Set File Position function if you need to perform random access.
WHAT? I am pretty darn sure I DO NOT USE the Set File Position when I read a file in successive and contiguous chunks. I just pass the file refnum into a shift register and back to the function and that's it.
Now, the description of the "Refnum Out" ouput says: If file is a refnum or if you wire refnum out to another function, LabVIEW assumes that the file is still in use until you close it. Translated in plain English, is that supposed to mean that if the file is not closed it is open, or is that implying that it contains more info that just "the file is open and can be found here"?
I started searching around and finally ended up with the entry for "refnums, file I/O". Down the bottom of the (long) article, I found this under the heading "References to Objects or Applications" (but nothing specific to files, BTW):
...LabVIEW creates a refnum associated with that file, device, or network connection...
[...] LabVIEW remembers information associated with each refnum, such as the current location for reading from or writing to the object and the degree of user access, so you can perform concurrent but independent operations on a single object. If a VI opens an object multiple times, each open operation returns a different refnum. LabVIEW automatically closes refnums for you when a VI finishes running, but it is a good programming practice to close refnums as soon as you are finished with them to most efficiently use memory and other resources.
So it seems that my recollection was correct. I do not know what the "degree of user access" for a file is, but that's not the topic of today's post.
So, my point is: the Help File for this function is incomplete or ambiguous at best. Please correct it. And provide a link to the "refnum, file I/O" Help entry in its detailed Help. It would H E L P...
Thanks for reading.Reading in succesive chunks is *NOT* random access. An open file always has
a current position, which is updated with each read or write operation.
You only need to set the file position if you want to start elsewhere.
LabVIEW Champion . Do more with less code and in less time . -
SQL Loader : Trim and Decode functions help please
Hi,
I have to load data from a flat file, for some columns i need to use TRIM and DECODE functions.It is a pipe delimited file.
I get syntax errors (one is below) same error listed for TRIM.
SQL*Loader-350: Syntax error at line xx.
Expecting "," or ")", found "DECODE".
===========
,FINAL_BILL_DATE CHAR(30) "TRIM(:FINAL_BILL_DATE)"
,BUSINESS_ID "DECODE(:BUSINESS_ID,'B',1,'C',2,'E',3,'G',4,'O',5,'R',6,'T',7,'U',8,'H',9,-1)"
Can anyone please help.
Thanks
CherrishHello Cherrish.
The error you are receiving leads me to believe that at some point prior to the DECODE on the line for BUSINESS_ID, probably some line even before the FINAL_BILL_DATE line, there a syntactical error causing the quotes before the DECODE to actually terminate some other syntax. Without all of the lines that could actually contribute to this, including the header details, this is the best I can advise.
Hope this helps,
Luke
Please mark the answer as helpful or answered if it is so. If not, provide additional details.
Always try to provide create table and insert table statements to help the forum members help you better. -
Dear All,
I need Output of the following query in the 'JANUARY' or 'JAN' i.e. 'MONTH' or 'MON' format. But following query is returning full date. Could any person help to get me output in MONTH or MON format but SQL should be using TO_DATE function.
TO_DATE(to_char(trunc(ORDERED_DATE),'MONTH'),'MONTH') order_date
Above query is failing to return desired output.
ThanksFor each DATE value, Oracle stores the following information: century, year, month, date, hour, minute, and second.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#sthref116
there are some conversion functions :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions180.htm#i1009324
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions183.htm#i1003589
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761
moreover, the human eye can only read character datatypes (not number or date datytypes) !
which means, whenever you do a select sysdate from dual there will be an implicit conversion
to character datatype to make it readable for you (according to nls_date_format) .
alter session set nls_date_format = 'DD.MM.YYYY' ;
select sysdate today from dual ;
TODAY
21.12.2008
alter session set nls_date_format = 'YYYY.MM.DD' ;
select sysdate today from dual ;
TODAY
2008.21.12So the same statement select sysdate today from dual ; will give different results on different systems,
just depending on some initial settings !
You ask why ? It's because you are using implicit conversion !!!
Re: Sql Error -
Hi,
I have a requriment,
can any one please help me to get this in sql query or plsql function,
Example:
I have errors messages in database they will in this format
1)AdjCost;sellprice;customerprice;dealerprice......
2)ctrtprice;invamt;invnum;AdjCost
for the above messages i will be having error codes as
AdjCost=AA
Sellprice=SS
CustomerPrice=CC
DealerPrice=DP
ctrtprice=CP
invamt=ia
invnum=in
error codes are hard coded values
for the first error message above i want output in this way
1)AA;SS;CC;DP
for the second error message above i want output in this way
2)CP;ia;in;AA
Can any one please help me getting this done?
Thanks in Advancep78 wrote:
Hi,
I have a requriment,
can any one please help me to get this in sql query or plsql function,
Example:
I have errors messages in database they will in this format
1)AdjCost;sellprice;customerprice;dealerprice......
2)ctrtprice;invamt;invnum;AdjCost
for the above messages i will be having error codes as
AdjCost=AA
Sellprice=SS
CustomerPrice=CC
DealerPrice=DP
ctrtprice=CP
invamt=ia
invnum=in
error codes are hard coded values
for the first error message above i want output in this way
1)AA;SS;CC;DP
for the second error message above i want output in this way
2)CP;ia;in;AA
Can any one please help me getting this done?
Thanks in AdvanceHow to ask question
SQL and PL/SQL FAQ -
Post Author: edy80y
CA Forum: Formula
I have a report with many subreports which all contain the same formula to group teams.When a new team is added i need to update all instances of the formula so they are all up to date.I know of Custom Function so i created one out of the formula in the main report. The problem im finding is that im unable to use that custom function in the sub reports.Am i wring in thinking that a custom function created in a main report can be used in its sub reports??Am i creating the custom function incorrectly? Heres what i have done:
Our database has team names that have a prefix of the State they are in such as: Perth - Team Orange Perth - Team Apple Sydney - Team Grape Sydney - Team Pineapple
At one stage the Teams in Perth had been split into Perth1 and Perth2 resulting in the following records in the database:
Perth1 - Team Orange Perth - Team Orange
Because of this i have created a formula that groups teams into sites:
select Trimleft(mid({team.name},instr({team.name},'-')+1))case 'Team Orange', 'Team Apple': 'Perth'case 'Team Grape', 'Team Pineapple': 'Sydney'default:''
I use this formula in all reports and subreports and i link by them as well, so if a new team is created (for example Perth - Team Pear) i need toupdate all instances of the formula by adding 'Team Pear' to the Perth case.
To fix the problem i created a custom function (called 'site') out of the formula above and it created this:
Funtion (stringvar v1)select Trimleft(mid(v1,instr(v1,'-')+1))case 'Team Orange', 'Team Apple': 'Perth'case 'Team Grape', 'Team Pineapple': 'Sydney'default:''
Now within that main report i am able to go to the formula editor and when i type site() then wording becomes blue but when i go into a sub report to do the same it doesnt react.
I hope i have explained my self well enough for you to understand my predicament without boring you.
Thanks in advance for your help!Post Author: edy80y
CA Forum: Formula
Hi,
Thanks for the reply. Unfortunately it does make things easy for me. If i add the custom function in the subreport then i will have to updae that as well whenever a new team is created. I'm looking for a solution where i only have to update the custom function in the main report only and not in the 7 or 8 subreports within it.
Unless i am doing something wrong. I basically copied the contecnt of the Custom Function in the main report and then went into the sub report and created a new Custom Function and pasted the code in it.
Regards,
Eddie S -
Heres a recap of the problem.
Im migrating from coldfusion using oracle db with packages to
coldfusion using mysql5 and hoping to use mysql 5 functions in
place of the oracle packages.
Now the problem is when I try to use a function inside of a
sql statement in coldfusion the mysql server shuts down and
coldfusion bombs with an error..
Heres some of my code.
I can successfully run this:
<cfquery name="Test" datasource="kiwanis" maxrows="10">
Select kiwanis.GetPositionDesc('CU') test
</cfquery>
I cannot run this:
<cfquery name="Test" datasource="kiwanis" maxrows="10">
Select kiwanis.GetPositionDesc('CU') test from
kiwanis.members
</cfquery>
The code im changing is just for testing purposes. when I run
this code, mysql 5 stops and then coldfusion bombs with a no
connection to db error:
"Communications link failure due to underlying exception: **
BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE:
Connection reset STACKTRACE: java.net.SocketException: Connection
reset at java.net.SocketInputStream.read(Unknown Source) at
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
at
com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInp utStream.java:160)
at
com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1910) at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304) at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803) at
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) at
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) at
com.mysql.jdbc.Connection.execSQL(Connection.java:3118) at
com.mysql.jdbc.Connection.execSQL(Connection.java:3047) at
com.mysql.jdbc.Statement.execute(Statement.java:690) at col... "
Now I can take my sql statements and run them in the mysql
query browser just fine. I get the correct output.
Why is coldfusion killing the connection?
I've tried running coldfusion 6 and coldfusion 7.
I've tried running ever possible J connector I could find on
the mysql site.
I've messed around with syntax etc with the queries and Im
still no where.
I havn't been able to find information if any about mysql
functions. Are these fully supported?
Any help would be greatly apreaciated, thanks.
-DanI had issues as well which I eventually overcame.
See the following thread :-
http://discussions.apple.com/message.jspa?messageID=5649480#5649480
Maybe you are looking for
-
Why can't I have more than one iTunes linked t my iPod
I have Macs for years, all sorts, I currently actively use, iMac g417,iMac g5 20, iMac intel 24. G4 Mac Mini,Intel Mac Mini, G5 tower, G4 Tower, powerbook g4 and mac book. Yes I know but I work from home with Mac all day... I have thousands of songs,
-
Using a .rcproject file from iMovie 9.0.9 in iMovie 9.0.4?
Is it possible to take an iMovie project and use/edit is on a different computer and an older version?
-
HI Experts, How to add signature in Script. Reagrds, Sreedhar.
-
Buying iPod touch 2g - have 6 questions
Tomorrow most likely. The 16gb. $280 ($20 off at Wal-Mart 8-) Don't really care about the rumored iPod Touch 3rd gen; as the 2nd gen will be able to download the 3.0 software. I wouldn't use the camera anyways as it would probably only be 4 megapixel
-
OIM 11gR2 - Self Registration Locale and Timezone
Hi, I would like to prepopulate locale (usr_locale) and timezone (usr_timezone) when a user registers using self registration. I created a PrePopulationAdapter, updated SelfCreateUserDataset.xml in MDS, registered the plugin containing the adapter, r