+ Reply to Thread
Results 1 to 4 of 4

If statement outcome problem

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    40

    If statement outcome problem

    Hi there,

    First off thanks for even reading.
    What I am trying to do is a multiple If ... I think. I will try and explain
    =IF(C1=Data!A:A,IF(A4=Data!C:C,IF(B2=Data!B:B,Data!D2,0))) is what I put together. I put together a small sample excel to try and get this to work.
    What it is i have 3 sheets. One Named data where the info goes, one sheet named Tim and other sheet named Tom.
    On data sheet there is 5 sections one for Name, Location, Date, # of people, hours.
    So what I am trying to do is
    get the value of # of people and hours based on if its Tim or Toms name and if the date match and by location.
    I attached the sample I am working with, also left my code on Tim's sheet in cell b4.
    So if the name matches Tim and the date and the location insert # of hours.
    testing.xlsx
    I am open to suggestions for better methods if there is any.

    Thanks for your time and help, hope I explained good enough for help.
    Last edited by devilchild99; 08-18-2013 at 08:10 PM. Reason: Solved

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If statement outcome problem

    Thanks for the title change

    Try this, copied down...
    =SUMIFS(Data!$D$2:$D$4,Data!$A$2:$A$4,Tim!$C$1,Data!$C$2:$C$4,Tim!$A4,Data!$B$2:$B$4,Tim!$B$2)
    Adjust ranges as needed for hours
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: If statement outcome problem

    That seems to work, thank you so much.

  4. #4
    Registered User
    Join Date
    01-17-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: If statement outcome problem

    disregard, thanks
    Last edited by devilchild99; 08-19-2013 at 11:44 AM. Reason: disregard, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula Problem with Multiple IF / AND Statements and Multiple outcome?
    By JONBOY666 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2013, 01:32 PM
  2. [SOLVED] issue with outcome of if/then statement in VBA
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2013, 10:18 AM
  3. Incorrect Outcome with Dates and >= statement
    By stuart010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2011, 12:55 PM
  4. If Statement not recognising outcome
    By JoeSharp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2008, 07:18 AM
  5. How to calculate a sum as one outcome of an IF statement
    By barb in NC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1