Formula Confusion

Dear all,
I have created a formula which counts number of working days. This formula then has been modified to subtract Bank holidays.
When I use a array formula of bank holidays dates, it works fine however when I use a holidays table within a database for bank holidays it doesn;t seem to work.
For example:
Using Holidays Array Formula
BeforeReadingRecords;
DateVar Array Holidays := [
Date (2003,12,25),   // you can put in as many lines for holidays as you want. 
Date (2003,12,31),
Date (2008,08,25)
0
Using Subreport>Formula->Shared Datevar with my main report
whileprintingrecords;
Shared DateVar Array Holidays;
numbervar i := i + 1;
numbervar j := count({bank_hol.holiday_date});
if i <= j then (
redim preserve Holidays[j+1];
Holidays<i> := {bank_hol.holiday_date}
The 2nd formula when used in the report, does not account for bank holidays. I don't know where I am doing wrong
Here is the main formula for Working days. (To use it with 2nd formula above, just change the Datevar Holidays to Shared Datevar Holidays;
Working Day Formula
WhileReadingRecords; //Change this to Whileprintingrecords when using it with subreport.
Local DateVar Start := Date(Year(CurrentDate),Month(CurrentDate),1);
Local DateVar End :=   Currentdate;
Local NumberVar Weeks;
Local NumberVar Days;
Local Numbervar Hol;
DateVar Array Holidays; //Change this to Shared DateVar Holidays when using subreport formula
Weeks:= (Truncate (End - dayofWeek(End) + 1 - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
(if DayOfWeek(Start) = 1 then -1 else 0)  +
(if DayOfWeek(End) = 7 then -1 else 0); 
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek ( Holidays<i> ) in 2 to 6 and
Holidays<i> in start to end then
Hol:=Hol+1 );
Weeks + Days - Hol;
Any help will be appreciated.
Many thanks
Regards
Jehanzeb

Vitaly,
I was going to reply to you but suddenly some how your post vanished.
Anyhow,
The Subreport is placed on the report header, I have checked my dates with my database dates by inputting a formula in my sub report. They both are identical.
Which means that my sub report is producing right results.
The formula (workingdays) is solely used to get averages of my jobs and lenses.
The report Selection Record formula is
({lab_rework.rework_date} in monthtodate and
{lab_reasons.reason_code} >= {?startcode} and
{lab_reasons.reason_code} <= {?endcode});
So the Jobs and Lenses are printed in accordance with Month to date.
The question arises when I use Holiday Array formula within my report using manual entries into an array and link it with Working days formula, it works however, when I do the same with Shared Datevar array with my subreport it does not want to work.
here is the formula which I inserted into the sub report to test my dates in accordance with Database dates.
whileprintingrecords;
shared datevar array Holidays;
numbervar i := i + 1;
numbervar j := count({bank_hol.holiday_date});
if i <= j then (
redim preserve Holidays[j+1];
Holidays<i> := {bank_hol.holiday_date}
This very formula is shared with my main report via
Shared DateVar Array Holidays;
Regards
Jehanzeb

Similar Messages

  • Formula confused by sorting

    I feel that I may have missed the right page in a manual with this problem.
    I have a table recently imported from XL (with no initial problems). The table has some 3,000 rows and 12 columns. It is a listing of geographic locations, map No. grid reference, and location category and data related to each location. The related data is updated frequently.
    Working with the list requires frequent filtering and sorting (filtered and unfiltered) all of which works fine. Several of the columns require either countif or counta calculations involving all 3000 rows. This also works fine until the rows (selected to avoid header rows and calculation results at the base) are re-sorted. After sorting based on one or two columns the simple formula: Countif(C5:C2943,"Yes") becomes something like: Countif(C345:C496,C5:C125,C1234:C2341) . . .etc. That is, the single array becomes seriously fractured such that it does not produce a numerical result. This occurs whether the cell references in the formula are relative or absolute. How can I prevent this happening and still use what appears to be a quite basic function?
    Q2. Is there a way to permanently define a contiguous range of rows for sorting without having to manually select it before each sort?
    Many thanks.

    Thank you for your reply (and for the unnecessary rapp over my knuckles). I have been searching for several days. The reply you directed me too was seriously over-complicated for what I was wrestling with.
    Instead I have found a very simple answer. All it required was a simple new table to contain the formula, strategically placed to appear correctly in the printed reports. I am very new to Numbers so still addressing the logic/layout differences to XL which I have been using for many years.

  • How to populate the parameter selection with a formula

    Post Author: jhartney
    CA Forum: Formula
    Confused or maybe just way to much coffee but I need some help here.
    I want to create a dynamic multiple select parameter field pulled from the database.  The fields in the DB are FIRSTNAME and LASTNAME and I want to concat those to look like "LASTNAME, FIRSTNAME" and populate the parameter list.  The selection from that list will later be passed to the record selection to match in a different database table/field FULLNAME.
    JON

    Post Author: jhartney
    CA Forum: Formula
    Answered my own Q,
    I created a SQL command and used that to populate the parameter field.

  • Beginning Inventory calc in ASO

    I'm just trying to put a simple calculation to link the beginning inventory balance to the prior period ending inventory.
    Here is what I put on the member formula:
    For Apri (April as the first month of the fiscal year)
    Beg Balance =
    (PrevMember(Year.CurrentMember,Level),[Mar],[Ending Inventory])
    For May-March:
    Beg Balance =
    (PrevMember(Period.CurrentMember,Level),[Ending Inventory])
    However, I keep getting the error below for retrieve (no problem for saving the outline)
    Error executing formula for "Beginning Inventory": Recursion limit [31] reached.
    I think it's because the formula confuses itself with the April and March balances kinda of referring to themselves....But it's for different years and it should just roll forward. I had no problem with BSO calc scrip or business rules.
    Any trick I can learn to make it work in MDX ? Really appreciate your help! Thanks.

    OK but you still will have to load every years begining inventory
    Besides you did not use that very begining inventory number in any of the formulas I saw. Nevertheless if the only beginnning inventory amount is more than 31 months back from any month you are in trouble.
    ANYTHING other than preloading BoY inventory will be slower -
    The only possible alternate solution is to write a formula for BoY inventory that says it = sum of the previous years ending inventory WITHOUT including BoY
    1 change your Ending Inventory formula to recurse ONLY to BoY - and not explicitly jump to prior years.
    Add a BoY formula with a lower solve order that sums(Purchases - sales) for all prior years + the special beginning of cube inventory value
    Assuming you built the following into your year dimension:
    YearsMultiple hierarchies enabled
    FYs label only
    fy12
    fy11
    fy10
    FY09
    Internal Calc Usage label only
    PreFY12
    FY11
    PreFY11
    FY10
    PreFY10
    FY09
    PreFY09
    Then the formula for your BoY member could be just ( StrToMbr( Concat( "Pre", [Years].CurrentMember_Name ) , Purchases ) - ( StrToMbr( Concat( "Pre", [Years].CurrentMember_Name ) , Sales ) + ([Special BofCube Beg Inv Account], [First Year], [Whatever month you loaded it to] )

  • Formula representation confusion

    New Mac user moving from 25 years on a PC. It can be frustrating as I would prefer to go all native on the MAC and use numbers instead of Excel. I have a question regarding Numbers and formulas. I transferred a file from my PC to my Mac and I can get around fairly well so far but this has stumped me. When I insert formulas they mostly look as I am used to (B13, G25, C52) and formulas the same (=B13:B45), however sometimes after I enter formulas or drag to copy they resemble something I cannot make out. Please see my two screen shots of the formula bar maybe someone can enlighten me. On the one titled "strange formula" I notice the "column headings" at the beginning of the formula but do not recognize the other numbers. I also see they are color coded to the specific cells. This representation of the formula makes it difficult to 1)identify specific cells and 2) edit formulas. The shot marked normal is what I am used to. I do I get back to the original formulas.
    I am running Yosemite 10.10.1 and Numbers 3.5
    Thanks for any assistance

    Hi david,
    Try unchecking "Use header names as labels" under Cell References.
    I think things will return to normal.
    quinn

  • Member formula in Essabse

    Hi,
    Its basic question I am looking for clarification.
    For any member with Member formula need to be Dynamic.
    I mean if that member formula needs to be considered that particular member needs to be Dynamic. is that correct. I am really confused.
    Any help will be greatly appreciated

    Not necessarily, you can have a formula member as "stored" in which case the member will be calculated when a default (non intelligent) calc all, or when you run a calc script that explicitly or implicitly calcs the member.
    In the DBAG take a look at Understanding Formula Calculation

  • PLEASE HELP: PDF Forms, creating average formula for text?

    Hello,
    I really hope somone can help. I cannot find any answers to my questions on the internet, google etc.
    First time using Acrobat. Im pretty quick learning on compters however the formulas my boss has asked me to do I have no idea if they are possible.
    We have a report form for exams and each section I need to calculate the average mark for that section.
    There are 3 questions for the first section. There are dropdowns for distinction, Merit, Pass and Below pass to select for each questions.
    Please see picture attached to show you what I mean.
    I want to be able to calculate the most selected/average dropdowns selected and not count the N/A's into award1 field?
    The fields must be text and cannot be numbers.
    so for example, track 1 got a distinction, track 2 got a Merit, Track 3 got a distiction. all other fields left n/a
    is there anyway to do this also is there any way to exactly the same as above as check boxes? - please see picture attached
    I appriciate any help. I am working on a mac
    Thanks
    Lauren

    Thank you so much reply
    Yes on the dropdowns the distincion, merit, pass or below pass values are in the correct areas ready for selection. For example on the distiction row you can only drop down for distinction and so on for Merit row dropdowns etc
    Check box is the way I rather do it as its quicker, however I created the dropdown option just incase check boxes average was not possible
    On the check boxes if i select merit for rtack 1 I would just tick the box and leave the the rest of the colum blank with no ticks. So just by seeing the tick I know its in the merit section for Track 1. However I donts know if I can do an average formula for with check boxes.
    If I check boxed/slected distinction for track 1, distnction for track 2 and merit for track 3 (obvisley any box could be ticked depeneding how the exam went so need then all in the script). I would like it to then calculate the avergae mark which would be distinction in the award1 field. While the none ticked boxes or N/A fields not affecting the average.
    This is just the start to a huge form Im doing Im dreading the rest of formulas I have to do lol
    sorry if im confusing you

  • Looking for an app which lets me create my own formula

    I need this simple thing done, I know it could be done by Excel, but I DO NOT want an Excel supported app, becuase I need to give this to someone who dealing with a lot of cells might be too confusing to him. Also I need to protect constant variables from being modified by accident, so Excel is not a good idea.
    What I need is:
    Input: A
    Input: B
    Do calculation on A and B base on a formula that I setup, and output answer C. Only +, -, *, / will be involed in the calculation, nothing fancy.
    The interface must be simple: Upon opening the app, there are two fields for the user to input A and B, with text hint of course, and a button to display C.

    Look at iAnnotate. I don't use it, but I have read that it will work with PDF and PowerPoint files and the app description seems to indicate that as well.
    https://itunes.apple.com/us/app/iannotate-pdf/id363998953?mt=8
    Adobe Reader will let you annotate and take notes on PDF files and it is free.

  • Need this formula to look back 2 full years

    In the following code, we are looking to show all records, where, the part# had no sales for the 2 month period selected by the user. But we also do not want to show this part if the current onhand balance is o, and also, we do want to show when was the last sale for this part. THe change i need is that the code here will show the last sales for past year only of calender year. I would like it to show 2 years back, meaning 2 full years from current date. I think i need to have an OR statement here and {SUMPRT.IQYER#} = {?Year} but not really sure. this is a crystal reports formula.
    {PARTINV.IEQOH#} <> 0.00 and ( if {?Month}=1 then (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year}) and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1)) else if {?Month}=2 then ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 ) and {SUMPRT.IQYER#} = {?Year} else if {?Month}=3 then etc...

    Hi Paul,
    This formula is pretty confusing because I can't decipher which fields relate to what.  I think though you may be overthinking the formula.
    It looks like you are evaluating each month of the year individually.  Instead of using nested IFs, have each month as a separate statement.  Better yet, use a case statement like:
    {PARTINV.IEQOH#} <> 0.00 And
    Select {?Month}
         Case 1:     (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year})
                        and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1))
         Case 2:     ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 )
                        and {SUMPRT.IQYER#} = {?Year}
         Default:     etc...;
    Separating the months into a Case or independant IF should get you your results.
    Thanks,
    Brian

  • Using PL/SQL in a formula column in Oracle Reports Builder.

    Hi,
    I need to SUM two record from the result of an SQL interrogation.
    Here's what it looks like
    function CF_1Formula return Number is
    nTot1 NUMBER :=0;
    nTot2 NUMBER :=0;
    begin
         select sum(:TOT1) into nTot1 from table(Q1) ;
         select sum(:TOT2) into nTot2 from table(Q1) ;
         return (nTot1 + nTot2);
    end;I'm kind of new to formula column programming any link of interest would be appreciated.
    The from table(Q1) part Q1 represents my SQL interrogation name and the group below it is G_MAIN.

    Hi Hong Kong King Kong,
    From looking at that function name (and the group name): Is this an Oracle Reports generated function?
    If so, there's also a dedicated Reports forum: Reports
    By the way, I like your synonym for 'query'.
    I'm sure I'll confuse some of my collegues tomorrow when I will mention 'database interrogation' instead of 'query'. ;)
    edit
    Doh...I should not underestimate the information that is posted in thread subjects.
    Edited by: hoek on May 5, 2010 9:24 PM

  • Still Photo Aspect Ratio Confusion

    Apologize for asking a question on this topic as I have been through the forum and realize the topic of aspect ratio comes up often. I have not however seen this question answered. Quick background:
    -Working with HD Video footage imported as SD as I am burning non-HD dvd's and I have heard the conversion in IDVD and Toast from HD is not great;
    -Using photos imported from Aperture in FCE;
    -Sequence is NTSC anamorphic as I want 16:9 but without HD;
    My question is about the aspect ratio of still photos when I bring them into the timeline. I have experimented with saving photos in different aspect ratios: 853x480 and 720x480. When I import into FCE the 853 shows a square pixel and the 720 shows a NTSC pixel. From what I have read this is due to the way FCE interprets the aspect ratio and assigns an pixel aspect. When I view each in the viewer they both look correct when I click the corresponding pixel aspect from the top of the viewer. It is when I move these to the timeline that I get confused. The 853 gets an adjustment of 18.52 and the 720 gets an adjustment of 33.33. What do these adjustments actually represent? Is it a percentage, a number of pixels, something else? When I read about it in the Manual it seems to state that FCE adjusts for the difference between the still and sequence, but then why does it adjust the 720 since it has the same pixel aspect as the sequence? I then tried changing the Pixel aspect of the 853 in the browser to NTSC and moving it to the timeline. I get the same 33.33 adjustment. The 33.33 does not look correct in either of them, but when I change it to 18.52 it looks correct (with the pixel aspect at square, with it not checked it looks "skinny" or squished).
    Only thing I can think is that it has something to do with the anamorphic adjustment and the squeezing that goes on with it as 18.52 as 853 (widescreen) is 18.47 percent wider the 720.
    At this point I am really not sure how these will display when I make a dvd and display on a widescreen tv. I would prefer not to do this by guessing or looking at the picture, but instead by understanding what FCE is doing and making sure I have the settings and adjustments correct.
    Sorry for the long message, but would really appreciate any advice

    Michael,
    sorry to disagree, but for sure I was not clear, and the topic is quite complex. So I decided to provide an overview (as much as I can...) of the various combinations of clips inserted into various sequences with all settings - possibly on my web site (I'm afraid other posters are getting bored about all this math).
    But since this is taking quite a bit of time, let me just tell you now where I disagree about your findings. When I'll have my overview completed I hope that will better explain what I mean.
    _Your point 1_.
    I'm pretty sure you (unwillingly) are importing your 16:9 square pixel NTSC clip into a +4:3 CCIR pixel NTSC sequence+ (not your original 16:9 anamorphic NTSC sequence). Please check your sequence settings by selecting the sequence in the browser in list view and reading the Frame Size, Pixel Aspect, and Anamorphic fields.
    a. If your sequence is in fact +4:3 CCIR pixel NTSC sequence+, by applying the formulas you get:
    - PARclip for +16:9 square pixel NTSC+ clip = 853/853 = 1 (as for any square pixel clip)
    - but PARseq is not 1 (as you write) but 640/720 (square/actual pixels) = 0,8888
    - Adjust = PARseq/PARclip = 0,8888/1 = 0,8888.
    - Since Adjust is <1 Motion Aspect Ratio = - 100* (1/0,8888 -1) = -12,5 as you experienced on FCE. BTW this means that the imported clip has to be squeezed vertically by 12,5% (as opposite of horizontally).
    b. If your sequence instead really is +16:9 anamorphic NTSC+ as you seem to imply, then 18,52 is correct as you confirm yourself with "Agree that in the four cases you list it agrees...": it is in fact the 2nd case in my 4 cases list.
    _Your point 2_.
    Here I suppose the sequence is +16:9 CCIR pixel NTSC+ which has PARseq = 853/720 = 1,1852.
    But I'm not clear what you mean by "720/640 NTSC clip". My guess is that you mean a +4:3 CCIR pixel NTSC+ clip,
    then PARclip = 640/720 (square/actual pixels) = 0,8888
    then Adjust = PARseq/PARclip = 1,1852/0,8888 = 1,3333 and Motion Aspect Ratio = 100*(1,3333 - 1) = 33,33 as you experienced
    _Adjust formula_.
    I think this formula in your earlier message is incorrect: Aspect Ratio (in Motion/Distort) = - 100 * (1/Adjust-1) if Adjust ≤ 1; seems like the formula: Aspect Ratio (in Motion/Distort) = 100 * (Adjust-1) if Adjust ≥ 1 works at all times including <1 as follows 100*(.875-1)=-12.5.</div>
    This not true (well it is true only for Adjust = 1...). As an example if Adjust = 0,8888 then 100*(0,5-1) = -11,12 (wrong value for this pixel adjustment), while -100*(1/0,8888-1) = -12,51 which is the correct vertical squeeze !!
    Why 2 different formulas are needed ? because when Adjust is >1 a +horizontal squeeze+ by Adjust is necessary to fix the pixel aspect ratio misalignement, when Adjust is <1 a +vertical squeeze+ is necessary by 1/Adjust... (figures will help as soon as they are ready for... publishing).
    I'm sorry these posts are so long, I try to make them as clear as possible, but the topic is a bit messy and, even if only fractions are involved in this math, their actual meaning is not always intuitive...I'd really appreciate any comment also by more experienced users of FCE/FCP...
    Thanks
    Piero

  • How do I redirect formula links in a duplicated table?

    I am putting together an annual accounts spreadsheet in Numbers. I have several worksheets with a set of tables for the first month. The final worksheet contains a summary table which gathers data from across all the tables on the other sheets. No problem so far. But when I create a new set of tables for the second month I also duplicate the summary table. Now all the values are still drawn from the first month tables. How can  I redirect all the formulas to the second set of tables? Is this possible?
    If this sounds a bit confusing, this is what I am trying to do by way of simple demonstration;
    I create Table A (January) in Worksheet 1
    I create Table B (January Summary) in Worksheet 2 - this contains formulas drawing information from Table A
    I duplicate Table A in worksheet 1 to make Table C (February) - and overwrite the cells with new data values. Table C remains in worksheet 1
    I duplicate Table B in Worksheet 2 to make Table D (February Summary). Table D remains in Worksheet 2. However, all the data values are still drawn from Table A (January). I now want them all to point to Tabel C (February) without having to manually re set all the formulas.
    There doesn't appear to be a one command way of doing this. Nor can I double click the cell formulas and type in a simple change - it seems I have to start the formula set up all over again.  Any help would be appreciated - even if it is bad news! I'm quite new to Numbers - but finding my way around!
    Many thanks

    Hi John,
    Rather than struggling with so many separate tables and formulas, which sounds unwieldy and error-prone, have you considered entering your data in one table and extracting monthy summary statistics and views as needed?  For example you could have something like this:
    The Purchases Data table contains only data you enter. There are no formulas there.
    There is only one formula in the Summary table, here copied from B2 across and down:
        =SUMIFS(Purchases Data::$D,Purchases Data::$B,$A2,Purchases Data::$C,B$1)
    Granted, it's an indimidating-looking formula. But if you look up SUMIFS in the function browser you'll see how it works. It's much easier than it looks.  The first argument within the () is the column you want to sum. The other arguments are column-condition pairs, where each condition applies to the column just before it.
    So the formula here in B2 is saying, add up all the numbers in column D of the Purchases Data table (the first argument) where the value in column B of the the Purchased Data table is the same as the value in A2 of the Summary table (the first column-condition pair) and the value in column C of the Purchases Data table is the same as the value in B1 of the summary table (a second column-condition pair). You can add more column-condition pairs as needed.
    Using this approach you can also quickly extract monthly summary tables.  In this simple example, you set one up and get it working for the first month, then copy/paste the whole table, change its name and the month number in A1 and you're done. No need to further fuss with formulas:
    Formula in B2, copied to C2:  
          =COUNTIFS(Purchases Data::$B,$A$1,Purchases Data::$C,B$1)
    Formula in B3, copied to C3:  
          =SUMIFS(Purchases Data::$D,Purchases Data::$B,$A$1,Purchases Data::$C,B$1)
    Then, say, you want to list all the Cafe purchases in January, you simply apply a filter to the Purchase Data table like this:
    SG
    P.S. Sharing via iCloud here is easy:
    Copy the link, click the in the editor and paste it in.

  • Numbers' Functions and Formulas in Multiple Cells, Tables, and Sheets

    Hello,
    I'm stuck with specifics that center around usage, and I get the funny feeling I'm overlooking a simple detail or two.
    If I may, here goes.
    I'm working with a single spreadsheet that has several sheets within it, and each sheet has an identical table. Each table is used to record various data, and I use an additional table in a separate sheet to consolidate some of the information, so that I can track results, at a glimpse, by looking at averages, totals, etc.
    Each data table is organized for consolidation by tracking wins, ties, or losses. It is important to know that each data table only records a single win, tie, or loss along with its other applicable data. And on the actual consolidation table I am trying to tally specific data fields by the use of Numbers' functions and formulas, yet I wish to keep these tallied results organized by the determining factor of whether or not they were gathered from a table that recorded a win, a table that recorded a tie, or a table with a loss.
    To illustrate, each table contains data fields that record start time, finish time, elapsed time, the day of the week, etc. Let's say I have eight tables, and the first two are winning tables, three more are tables that record a tie, and the last three are losing tables. For example, on my consolidated data table I wish to enter a function and formula capturing which of the eight tables are wins, ties, and losses so that I can, at a glance, see how much time elapsed to obtain the wins, ties, and losses. So then, in this example, for wins I want to determine which of those wins took 20 minutes, or which of them took 15 minutes, etc. So then, out of the two wins, let's say both of them took 20 minutes each. I need the numeral 2 to be counted and recorded on the consolidation table since only two tables match the criteria. And I would do the same for all remaining data fields (e.g., start time, finish time, etc.). Just so long as everything is determined by wins, ties, and losses, and then organized by the respective data fields. Simply put, this example determines a total of two wins that meet the data field requirement of 20 minutes. Out of the eight tables (one table per sheet) any other wins would then be organized according to the specific data in the elapsed time data field on it's data table (e.g., 5 minutes, 15 minutes, etc.).
    The exact syntax structure of the functions and formula I'm unsuccessfully using follows below. It only seems to return a result of 1, and I think it is returning this value from the IF Statements. By the way, the Win, Tie, or Loss cell in each data table is cell formatted as a pop-up so I can either select None or 1. But in this example I'm basing this on the time period of 20 minutes, and out of the eight data tables I have two wins which also record the time period as 20 minutes, so I should see 2 and not 1 in the 20 minutes column of the consolidated data table. Also, I tried changing the syntax where I would type "=1" in the IF Statements, but it returned a result of =1, and if I don't include the equals sign and quotation marks the result just shows up as 1.
    My Syntax:
    IF(Trade 1::'Data Recorded (1)' '* Win', 1, IF(Trade 2::'Data Recorded (1)' '* Win',1, IF(Trade 3::'Data Recorded (1)' '* Win',1, IF(Trade 4::'Data Recorded (1)' '* Win',1, IF(Trade 5::'Data Recorded (1)' '* Win',1, IF(Trade 6::'Data Recorded (1)' '* Win',1, IF(Trade 7::'Data Recorded (1)' '* Win',1, IF(Trade 8::'Data Recorded (1)' '* Win',1, IF(COUNTIFS(Trade 1::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 2::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 3::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 4::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 5::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 6::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 7::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 8::'Data Recorded (1)' '* Time in Trade (in minutes)'))))))))))
    Please bear in mind that the COUNTIFS portion of the above syntax structure is something I'm already successfully using to count the totals of other things not mentioned above, and I'm hesitant to delete it since it already works to my satisfaction when I want to, for example, determine the total number of overall wins. So, just for illustration purposes, I might have an overall wins column in my consolidation table that records how many wins there are, regardless of organization by elapsed time, or any other data field. In other words, the COUNTIFS syntax structure already works to my satisfaction. I'm not sure if it's possible to alter it so that it isn't so long, but what's there does work just when counting total numbers, as just mentioned.
    In summary, I'm wondering which function I can use with the COUNTIFS function to determine which of my eight data tables are winning tables, but break those wins down further based on criteria like elapsed time, and in the above example the time elapsed is 20 minutes. As you may see above, I'm unsuccessfully using the IF function. Finally, I've looked at the function browser descriptions of things like LOOKUP, HLOOKUP, VLOOKUP, INTERSECT.RANGES, and a few others. And so far I haven't made good use of any of them the way I've done when I use the COUNTIFS function by itself when only counting overall totals. But now I must determine totals that meet certain criteria, as explained above.
    Please help if you dare (smile). This is a huge project I'm undertaking, and so as not to cause confusion I have not included all of the details. But rather, I've taken a small sampling and set it to the side for experimentation. If this small sample works out to my satisfaction I can simply copy and paste the syntax in all other respective cells in the consolidation table, changing only reference locations, and perhaps conditions or values. One thing is certain, I don't intend on giving up on it.
    Thank you for your time and advice.
    Blessings!
    Message was edited by: solo68
    Added image.

    I'd like to edit the last paragraph of my second posting, but for some reason an entirely new posting is being created when I attempt to do this. So when reading this post, please use it to replace only the last paragraph of my second post containing the four inserted images.
    Last paragraph begins:
    In closing, I need each cell in each column of each row in my consolidation table to remain as is. I have my reasons for doing this, and they all serve a specific purpose. The only exception would be the formatting of the last three rows as footer rows. Most importantly, and I should have made this abundantly clear earlier, my apologies, I need a single function and formula in cell E7 of my consolidation table that will firstly determine which data tables are winning tables while secondly and simultaneously counting which of those winning tables have elapsed times of 20 minutes. Perhaps, now this better explains why my syntax is written the way it is written. In the example I provided, if the proper function and formula were written it would result as 2 in cell E7 in my consolidation table. If there is anything else specific you need of me in order to assist me, please request it. Thank you.
    Last paragraph ends:
    Additionally, to t quinn:
    First off, thank you for returning to assist me. I really do appreciate your efforts. Please be aware that I'm avoiding going into details about each and every portion of my spreadsheet because I wish to avoid discussion that is off topic. As I stated earlier, I'm new to using these features of Numbers. My spreadsheet encompasses a much larger amount of data than I'm referring to in the example in my first post. But in my example I'm isolating just the information concerning what I'm now trying to accomplish to finish my spreadsheet project. Moreover, most of what I've done up to this point I was able to figure out on my own, or get help from watching videos on YouTube, or simply using the application help menu. Please be aware that I consulted all of these, repeatedly. I even contacted AppleCare, and was told this sort of support is not available. In spite of this, I've accomplished a great deal in my first large spreadsheet project. Please be aware that when I wrote my second post and specifically responded to you, I didn't want to be rude or ungrateful, and I still don't, but maybe the suggestions you and Hiroto made about gathering the count of wins, ties, and losses are something I've already done. I think I've done that separately. These counts are already in separate cells, and they are working fine. In my first post where I inserted only one image you can see examples of this in my consolidation table image, in cells B3 and E6. I apologize for not making this abundantly clear earlier. Furthermore, the portion of my syntax that shows the COUNTIFS is the exact way I accomplished this, and it is written the way it is written because I need separate sheets, each with their own data tables. Again, in cell E7 I need to determine which of the eight data tables that record wins are also recording 20 minutes, but I need this in a single function and formula with the result appearing only in cell E7. Once this is figured out I will adjust the syntax to do the same thing with every column (these are not shown but they exist) in my consolidation table for the last three footer rows, named Win Column Totals, Tie Column Totals, and Loss Column Totals. The last three rows being footer rows may not be necessary, and if so, I can convert them back to normal rows. Nonetheless, my consolidation table is counting the totals of all data in all data tables. This much I've already accomplished. Now I have one last function and formula I'm working on in order to determine which of the eight data tables record wins, ties, or losses while it simultaneously counts which of the wins, ties, or losses fall within certain categories like elapsed time, and this will be shown on my consolidation table only in the last three rows. Yes, I've gotten the total wins counted, and separately counted the total number of times 20 minutes was the elapsed time used, but so far, just looking at my consolidation table I don't know if the total number of times 20 minutes was used was with a win, tie, or loss. That's what I need to know now. Everything else is already accomplished. So then my consolidation table will show the totals for all data fields in my eight data tables as illustrated in cells B3 and E6. The last three rows of my consolidation table will break this down in a single function and formula with one row for wins, a second for ties, and a third for losses. And each of these respective last three rows will in the same function and formula determine if the win, tie, or loss also is one of the data fields in my eight data tables. How? By the use of columns in my consolidation table. Remember, each of my eight data tables are identical. In the example in my first post I only used one data field, elapsed time (Time in Trade), to illustrate in one column on my consolidation table what I'm trying to accomplish with all of the columns not shown in my consolidation table. Once this is figured out I can adjust it to complete the remainder of the consolidation table. Thank you, t quinn.
    To all reading this and attempting to offer assistance, if for any reason I'm still not explaining myself clearly, please continue to ask me more specific questions. I realize it's hard to communicate this way, and if Apple allowed us to upload the actual spreadsheet it would make this entire forum a better place to communicate. But that's going off topic, so let's simply focus on the matter at hand. Thank you.
    Blessings!

  • Confused about Mapviewer and SQL in OBIEE 11g.

    I read in another post that you cant use mapviewer unless you have an oracle database.
    Here is my confusion. The mapviewer product comes with OBIEE 11g, Correct?
    If I use Google Maps, and load the map information into an SQL data base, why wouldnt I be able to get it to work?
    I cant believe that Oracle, who makes a big deal about how OBIEE can work with "Any data source", would provide a key function
    that would only work with an Oracle data base, thereby purposely excluding many of their customers from using that key function.
    Someone please clear this up for me because we need to use maps and we use SQL Server 2008  for our data warehouse.

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • Using a formula that works in Excel

    Is there a way to create this type of formula that works in Excel but not in Numbers 09
    =SUMPRODUCT(--(Utilization!A10:A190="Jan"),--(Utilization!C10:C190="Personal"),- -(Utilization!D10:D190))
    This is referring to second page "Utilization" but doesn't have to in new numbers spreadsheet.
    Have 3 columns. 1st with month, 2nd describing type of work, 3rd with hours.
    New cell will have product of 1st two items.
    Can pm example if this sounds confusing. Thanks.

    You're right, it sounds confusing. It sounds like you want to create products of Months X Description of work X Hours and then sum them up.
    It's as amazing to me that it would work in Excel as that you think it would work in Pages or Numbers.
    Jerry

Maybe you are looking for

  • Addition in a linked list

    Hi, I want to add numbers in a linked list. For example when i pass in the string 123456789, i reverse it so that it appears as 987654321 in the linked list. If i add this to the string 954 which appears as 459 in the linked list, i am supposed to ge

  • How to display a waveform in XY format where X is the time in seconds?

    I am aquiring voltage from a power sensor and I am displaying this voltage as a waveform in a waveform chart. Now, I would like to display this waveform such that on X axis I have a range from 0 to 30 seconds (X axis should be displayed in seconds of

  • Issue when doing Levels as last step

    After using the Healing Brush, Clone Tool, Sponge tool, etc. I do Levels Adjustment Layer and it results in the issues in the attached image. Is there a way to avoid this other then doing Levels at the very beginning? The only other way I found aroun

  • Getting apps from my iPod to my PC

    I bought an iPod touch. Then I bought apps. Now, I want to update my OS, but can't because all of my apps will go away. How do I put the apps on my iTunes? or If I re-download the apps, will the app store recognize that I already purchased these apps

  • Highlight text in TextField

    I am creating an autocomplete feature for a school project using JAVA. I have created a TextField with a keyListener to lister for keypresses. After the keypress, I search a list for possible matches; stopping on the first match which is then st to t