I need help creating a formula that looksup cell data and give a value.

I want to have the table "At a glance"  show the total days a driver has worked, there total in sales and there total in milage. The table shown is a example of what I want to have happen. I want to input any name into cell B2,C2,D2,ect. that is found in the row C2:C17 of Checkpoint (Truck 1) and Checkpoint (Truck 2) and return the total amount of day the driver has driven both trucks, The total in sales the driver has collected (Truck 1 and 2) and How many miles the driver has driven (Truck 1 and 2). I realize that these tables are not labeled correct. If I enter a name into B2 and the driver associated with that name hasnt driven then I want "N/A' to show in cell B2 and so one. I assume that the formula that is created for cell B2 will be copied and pasted into cell C2, D2, ect..
If someone could help me with this problem I'd really appreciate it.
Thanks.

Hi br,
To show the number of days worked by a driver, you need to COUNT the number of times that driver's name appears in row 2 of both tables.
To calculate his total sales and total mileage, you need to SUM the amounts he brought in each day and the distances he drove each day.
Your functions for this are COUNTIF and SUMIF.
Formulas in At a Glance:
B2: =COUNTIF(Truck 1 :: $3:$3,B$1)+COUNTIF(Truck 2 :: 3:3,B$1)
B3: =SUMIF(Truck 1 :: $3:$3,B$1,Truck 1 :: $5:$5)+SUMIF(Truck 2 :: $3:$3,B$1,Truck 2 :: $5:$5)
B4: =SUMIF(Truck 1 :: $3:$3,B$1,Truck 1 :: $12:$12)+SUMIF(Truck 2 :: $3:$3,B$1,Truck 2 :: $12:$12)
Fill all three formulas right to the last column of At a Glance.
To put N/A in place of the 0 in Roger's column and the empty columns, wrap each of the formulas in an IF statement:
Bn: =IF(AND(ISERROR(MATCH(B$1,Truck 1 :: $3:$3,0)),ISERROR(MATCH(B$1,Truck 2 :: $3:$3,0))),"N/A",formula)
Where formula is the formula used in column B above.
Regards,
Barry

Similar Messages

  • Help creating a formula which returns current date last year

    I need help creating a formula which returns the current date last year. I also need it to work during leap years.
    Any ideas?

    Hi Dagros,
    I'm lucky to be a universe designer, I have to do this only once
    The easiest way would probably be to use
    =RelativeDate(CurrentDate();-365)
    So subtractiing 365 to get the same date last year,
    but you would need some extra logic for the years with a feb 29 in those 365 days.
    =If FormatDate(RelativeDate(CurrentDate();-365);"dd") = FormatDate(CurrentDate();"dd")
    Then RelativeDate(CurrentDate();-365)
    Else RelativeDate(CurrentDate();-366)
    Another question to ask is if you really want the same date last year, or if you also want a really 'same day' so monday compared to monday etc. in this case you would just subtract 364 days and get the day 52 weeks back...
    Good luck,
    Marianne

  • Need help created state machine that is time based

    I need help with my labview program. My goal is to write a program that allows the user to turn a toggle button on/off. When they do this it will start a loop witch turns on a digital switch for 45 minutes then off for 30 seconds and on and on till the user toggles the switch off. The timing does not have to be precise. I am using the NI 9476 digital output card.
    I have written the code to turn the switch on/off. I know need to add the looped fuction for on 45 minutes/off 30 seconds. I assume the most efficient method would be using a state machine, but I was having trouble figuring it out.
    Attached is the program I have written thus far without the loops.
    Thanks,
    Barrett
    Solved!
    Go to Solution.
    Attachments:
    Test Setup X01.vi ‏16 KB

    I cannot see your code since I don't have 2010 installed. A state machine would be good approach but in order to allow the user to cancel and possibly abort the process at any time your state machine should have a state such as "Check for timeout". In teh loop containing the state machine use a shift register to pass the desired delay value and the start time time for that particular delay. Once the user starts the process set the delay time to your desired time (45 minutes expressed as seconds) and have another shift register that contains the next state to go to after the delay completes. Use a small delay (100ms to 500ms depending on how accurate you want your times to be) to prevent your state machine from free running and then check the delay again. Use the current time and compare it to the start time. If the desired time has passed then go to the next state. You can store the next state in a shift register. No do the same thing for your Off Time state.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Simple Delay in State Machine.vi ‏14 KB

  • How to create a button that Copies subform data and paste it to a new page?

    Hi , I'm want to create a button that when clicked copys all the data from the feilds of a subform off the previous page and paste it into current page.
    I have used Steve's "Simple table.pdf example" to add a subform called DecorationDetail that has a button that adds an instance when clicked.
    Contained in the decorationdetail subform are feilds named Quantity, Description,UnitPrice etc. and a delete instance button.
    So when the first page is filled out, and a second page with blank duplicate feilds is added by a add page button. I want to be able to click a button
    positioned at the end of the row of feilds, and it then copies the same subform data from the previous coresponding page and pastes it into the current page subform feilds.
    Hope this make sense?. A step by step guide would be greatly appreciated!!!.

    Hi,
    Does this article provide you with some clues? http://www.perfectwebtutorials.com/2011/how-to-create-simple-contact-form-in-flash/
    Thanks,
    Preran

  • Need help bout a query that will print data in matrix format..

    solved
    null

    SQL> create table mytable
      2  as
      3  select 'pranita' consultant_name, 'manager' designation, 'sohan' salesman from dual union all
      4  select 'pradeep', 'ceo', 'nick' from dual union all
      5  select 'sham', 'developer', 'prasad' from dual union all
      6  select 'john', 'designer', 'sohan' from dual union all
      7  select 'sam', 'developer', 'rajesh' from dual union all
      8  select 'pranita', 'manager', 'sohan' from dual union all
      9  select 'john', 'designer', 'anand' from dual union all
    10  select 'pradeep', 'ceo', 'rohit' from dual union all
    11  select 'sam', 'developer', 'nick' from dual
    12  /
    Tabel is aangemaakt.
    SQL> select consultant_name
      2       , designation
      3       , count(decode(salesman,'sohan',1)) "sohan"
      4       , count(decode(salesman,'nick',1)) "nick"
      5       , count(decode(salesman,'prasad',1)) "prasad"
      6       , count(decode(salesman,'rajesh',1)) "rajesh"
      7       , count(decode(salesman,'anand',1)) "anand"
      8       , count(decode(salesman,'rohit',1)) "rohit"
      9    from mytable
    10   group by consultant_name
    11       , designation
    12  /
    CONSULT DESIGNATI      sohan       nick     prasad     rajesh      anand      rohit
    sam     developer          0          1          0          1          0          0
    john    designer           1          0          0          0          1          0
    pradeep ceo                0          1          0          0          0          1
    sham    developer          0          0          1          0          0          0
    pranita manager            2          0          0          0          0          0
    5 rijen zijn geselecteerd.Regards,
    Rob.

  • Need help in framing an SQL query - Sample data and output required is mentioned.

    Sample data :
    ID Region State
    1 a A1
    2 b A1
    3 c B1
    4 d B1
    Result should be :
    State Region1 Region2
    A1 a b
    B1 c d

    create table #t (id int, region char(1),state char(2))
    insert into #t values (1,'a','a1'),(2,'b','a1'),(3,'c','b1'),(4,'d','b1')
    select state,
     max(case when region in ('a','c') then region end) region1,
      max(case when region in ('b','d') then region end) region2
     from #t
     group by state
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is it possible to create a formula that converts a resource hours into full time units in project server 2010

    Hi
    Is it possible to create a formula that converts a resource available hours into full time equivalent units in project server 2010? Say a resource has 160 available hours for any given month this will translate into 1 FTE for this month. If it is 80 hours
    for that month then it will be 0.5 FTE and so on and so forth.
    Thanks,
    -Maurizio

    Maurizio,
    It's a bit late, but there are two OLAP cubes that can provide you with this information in a pivot table in Project Server 2010.
    "MSP_Portfolio_Analyzer" and "Resource Timephased" contains capacity measures that be used to provide calculated measures when the cube database is generated. You change OLAP cube configuration in "Server Settings -> Database Administration -> OLAP
    Database Management". In either of the aforementioned cubes, use "Calculated Measures" to create two measures:
    Member Name
    MDX Expression
    Available (FTE)
    ([capacity]-[work])/[capacity]
    Work (FTE)
    [Work]/[Capacity]
    These two fields will appear in the pivot table field list as "Values", and when combined with a "Time" column, can give you a picture of FTE usage and availability.
    I prefer the portfolio version since it contains project/assignment data and resource data, letting you see just  how resources are being utilized.
    One thing I have not been able to get around is getting ""Maximum Units" for a resource factored into the measure. A common practice is to allocate more that "100%" to generic resources to represent teams for planning purposes. The OLAP measures will show
    only 0.0 to 1.0 FTE for any resource, even if a resource represents more than one body.
    If you have an SSRS query you could share, I would appreciated it!
    Hope this helps!
    JTC
    JAckson T. Cole, PMP, MCITP

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • I need help making a square that scans across a screen.

    i'm trying to make a program that creates images of a square scanning across a black background.  so far all i have is a program that makes one image where i can alter the size of the square and its position.  I'm very very new to labview and i need help with the structure that would create all the images of the square scanning across and then shift down and scan across again.
    thank you very much,
    Joseph Sadler
    Attachments:
    Drawexample.vi ‏24 KB

    As Lynn found, there is a memory problem with the vi which didn't show up in my limited testing.
    Using Shift Registers with Picture Controls can cause problems.
    See this thread.
    Try the attached "mod" version.
    Then I got to thinking, why redraw the box (2x with "erase") - when you could just move a box around?
    (Note: I used a picture for the box, but you could use other objects.)
    The "mod1" version does it this way.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    squarescan mod.vi ‏20 KB
    squarescan mod 1.vi ‏20 KB

  • Uber Noob Needs Help Creating website!

    I need help creating my webpage: It has a textbox on it were
    the user enters a URL and it then redirects the end user to that
    URL when they press the GO Button. It also has a check box saying
    "Hide my IP", If the end user clicks this box and then clicks go
    they will be directed to the website they stateted in the Textbox
    but this time it shall mask there IP Address so they can bypass
    proxys and surf anonomosly. Please can someone give me some HTML
    code i could use for this site or a Link to a website that can give
    me the code.

    I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
    Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
    Check that the application ID has the necessary object privileges on the table.
    Queries you need
    select * from dba_synonyms
    where table_owner = 'INHOUSE'
    and table_name = 'ICLTM'
    You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
    select * from dba_tab_privs
    where table_name = 'ICLTM'
    and owner = 'INHOUSE'
    Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
    You could also query dba_objects for all object types that have the object_name = 'ICLTM'
    HTH -- Mark D Powell --

  • Help creating a formula

    I could use help creating a formula.
    I have a excel file that I want to move to numbers.  In it, I track the date last put in a column.
    Each Column is for a date, and each row for an item.   When I put a date in a the column, I am trying to create a forula that woudl return the date last input.
    That is probably all confusing....but here is the excel formula that works, that does not work in numbers.
    =IF(B80>0, INDEX(G80:FH80,MATCH(9.99999999999999E+307,G80:FH80)), "Not Played")
    Or a second one I have also used
    =INDEX(C5:JZ5,MATCH(9.99999999999999E+307,C5:JZ5))
    Honestly - I don't understand the forumla, I got it from someone - I just know it works in Excell, but not in numbers.
    Below is a picture of what it comes out like in Excell.  The column that is not working is the "Last played"
    Does that make sense?  Any Numbers experts out there that can help me create a forumla in Numbers for this?

    Hi Jim,
    If I'm reading your table correctly, it appears that all dates a particular song has been played are listed in the same row as the song title.
    If that's the case, your formula in G3 would be:
    =MAX(H3:XX3)
    With the letter identification of the last column in the table replacing XX.
    The formula would then be filled down from G3 to the last row containing a song title.
    Two other suggestions:
    Numbers does not really perform well with large tables. The underlying model for a Numbers spreadsheet is a number of small, single purpose tables using no extra rows or columns.
    As a first order revision to this table, I would suggest splitting the table after column G, then adding a single header column before what was column H. The seven column table consisting of columns A to G would then becone a summary table. The only entered data in this table would be the labels "Worship song (Wed)" through to "Last Played" in row 1. Row 2 would be empty to match the position of the song titles on this table with the positions on the larger table, and both row 1 and row 2 would be set as Header Rows to permit their being frozen in place, allowing other roll to scroll behind these two.
    Everything else on that table, including the song titles, would be formula generated from data on the larger table.
    The larger table would become a data collection table, containing only one or two formulas—the formula in row 2 that counts the number of songs used on each day, and possibly one to generate the weekly dates in row 1. All other data on that table would be directly entered by typing from the keyboard, pasting after copying from an outside source, or by inserting usng a script or menu item.
    The main advantage here is that this arrangement would lessen th liklihood of accidently altering formulas during data entry by moving all data entry to a separate table, and by making it possible to lock the summary table, where no data entry takes place.
    A second suggestion would be to limit the number of columns in the Data table to one for the song titles plus enough to collect the data for a period of either one or two years.
    The main question to determine whether this would be a useful step is 'Do you have a use for the actual dates on which a song was played over two years ago, or is the number of times it was played in each year sufficient at that temporal distance?'
    Making this change would involve some additional annual maintenance, with a couple of hitches that I haven't yet looked at, so unless the ie=dea interests you, I'll let the second 'sleeping dog' lie.
    Regards,
    Barry

  • I need to create a schedule that will be performed every day

    Hi,
    I need to create a schedule that will be performed every day. Must start at a specified time and finish their work at a certain time. Joby hooked to this schedule must do their work in a loop, until he completed the work to the procedure. Do you have any solution?

    6e4e5455-0183-4163-be68-1e68fc529042 wrote:
    Hi,
    I need to create a schedule that will be performed every day. Must start at a specified time [...]
    Easy, use DBMS_SCHEDULER to schedule the job to start at a particular time every day.
    [...] and finish their work at a certain time. [...]
    What should it do if it finishes early? What should it do if it hasn't finished its work by the given time? There may be things you can do to make it crash out at a given time - but its helpful to know what your aims are first.
    Joby hooked to this schedule must do their work in a loop, until he completed the work to the procedure. Do you have any solution?
    I don't have a clue what that last sentence means, let alone a solution.

  • Need help with a workflow that will restrict resize to 720x540

    I need help constructing a workflow that will resize any image I choose to 720x540. I want this to be restrictive to this size, in other words I don't want 720x468 or etc. I have tried this too many times, will no success so now I am reaching out for help. HELP. Once I have correct resized an image as needed I want to change its format and save a copy.
    As always thanks for your reading and replying to my Post,
    Sebastian

    Hi there,
    what Image editing software do you have, if any ?
    regards
    Ric

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • HT5622 I need help finding a movie that I downloaded, can anyone help me with this?

    Hello, I need help finding a movie that I downloaded, can anyone help me with this?

    If you downloaded it to your iTunes library it will be in the Movies folder.  If you downloaded it to an iOS device you will find it in the Videos app.  This explains how to redownload previously purchased videos (available in some locations as long as the studio permits it): http://support.apple.com/kb/PH12283.

Maybe you are looking for

  • Can we use Substitution variables in MAXL?

    Hi, Can we use substitution variables in MAXL script? I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3. alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})'; I am planning to use Current_year &

  • Region in the invoice

    As the requiremnt like the region should change in the invoice. The scenario like for the same customer the region is different based on the SEA FRIEGHT and AIR FRIEGHT. EXAMPLE : The customer is from German. for Sea Frieght the region is BERLIN for

  • Invoice for purchased games

    Hi,i need invoice for the purchased games on my PSN Store. How can i do that, after i download a game ? thanks

  • Contacts category minimized with 6.1.2 OS

    dear all, after upgrading to the latest os 6.1.2 (10B146) and whenever I try to add a new contact I cannot find the option of iphone, also after using a mobile I cannot use another number under the mobile category. this happened with all my friends w

  • Gnome-shell 3.10.2 + gdm: interface broken. Restart with "r" fixes it

    Hello forum I have a fresh install of Arch with Gnome-shell and GDM, and after logging in for the first time, the Gnome-shell interface appears broken. See the screenshots below: The desktop http://imgur.com/RWJROK3 and when clicking the top right tr