+ Reply to Thread
Results 1 to 13 of 13

Max/If statement across multiple worksheets not working

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Max/If statement across multiple worksheets not working

    Hi All,

    I have a very basic knowledge of excel but as I know where the power button on a pc is work seems to think I'm a computer genius.
    I have been tasked with setting up something which shows if someone has not been on a certain job for a while (basically a rota).

    For this I was hoping to set up a spreadsheet that looks across multiple sheets and brings back the most recent date only when someones name is in another field.

    I have this so far:

    This works
    =IF(First!F2=Sheet2!A2,(MAX(First:Last!B2)),"no answer")


    This doesn’t
    =IF(First:Last!F2=Sheet2!A2,(MAX(First:Last!B2)),"no answer")

    F2 is where I put the person on the "rota", A2 is the the list of names, B2 is the date.

    Problem with the first one is the IF part of the statement only looks at one worksheet and not the range as desired.

    Any help would be appreciated but my understanding of excel is not great.
    There is no sheet to upload as haven't really made one as cant get the basic principal to work.

    Thanks for your help in advance

    M

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Max/If statement across multiple worksheets not working

    Quote Originally Posted by Rockaddict View Post
    There is no sheet to upload as haven't really made one as cant get the basic principal to work.
    Hi and welcome to the forum!

    But surely you can upload one with some data and your expected results so that we know what we're aiming for?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    Very basic idea
    first page would have a list of names that have dates for each role.
    Could then create a separate sheet that gets data from this.

    Not a lot of help I know.

    M
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Max/If statement across multiple worksheets not working

    Sorry if I can't work it out, but which are the expected results?

    Are all the relevant sheets identical in layout in reality?

    I can appreciate if you're pressed for a solution, but producing a good, detailed workbook analogous to the real one (though with dummy data, of course) with several examples and your expected results clearly outlined will actually make the chances of you getting a solution soon much better.

    Regards

  5. #5
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    The first tab I would use as the reference for each operator. It would be a list of about 50 names with about 20 different jobs along the top. The cells would then contain the date last on that job.

    I was then hoping to use all the other tabs to record where people where on that day and print off for people to see where they where going.

    Thanks for the help.

  6. #6
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    Forgot to say the first tab would get the dates from the most recent dates on the tabs.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Max/If statement across multiple worksheets not working

    Sorry. Like I said, a bit too little pre-population of the workbook for me to believe I can confidently formulate a solution.

    Hopefully someone else will pick up on this thread shortly.

    Regards

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Max/If statement across multiple worksheets not working

    Try..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  9. #9
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    Thanks for the input.
    That only works if the persons name is always in the same cell.
    Also there are only a few tabs currently but could end being alot as the year goes on. This is why I tried using ranges allowing for new sheets to be added.

    Thanks again though.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Max/If statement across multiple worksheets not working

    a2 and c2 are merged cells.

    Don't work with merged cells, you get in trouble with it sooner or later.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  11. #11
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    They aren't really necessary. They where just thinking of making it simpler to fill in. Hiding the other cells with the dates just to make it look cleaner.

  12. #12
    Registered User
    Join Date
    08-21-2014
    Location
    market harborough
    MS-Off Ver
    MS 2010
    Posts
    8

    Re: Max/If statement across multiple worksheets not working

    Basically just need an equation that searches all tabs for a name and returns the highest value for the cell next to it on those tabs.

    If anyone can help I can then fit everything else around it.

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Max/If statement across multiple worksheets not working

    post an excel file, without confidential information and without merged cells.

    please also add the desired (expected) result in your file.

+ 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. Max If statement not working across multiple sheets
    By Robmeister89 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-26-2013, 08:49 AM
  2. [SOLVED] Multiple IF Statement not working.
    By Stahlfeder in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2012, 05:00 PM
  3. Multiple Conditional @IF Statement Not Working?
    By crwiseman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2006, 02:31 PM
  4. [SOLVED] working with multiple worksheets
    By Shaun in forum Excel General
    Replies: 1
    Last Post: 11-03-2005, 03:10 AM
  5. Working with multiple worksheets
    By Paul in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 11:10 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