+ Reply to Thread
Results 1 to 10 of 10

Using IF, ISNUMBER and MAX function

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    5

    Using IF, ISNUMBER and MAX function

    Hi there,

    I am using the following formula so that the excel sheet I am using for data entry will automatically select the highest of 3 values for each participant in a study I am conducting, so that the second sheet will contain the highest value for dynamic graphing.

    =IF(ISNUMBER('Muscle data'!I2:I4), MAX('Muscle data'!I2:I4)," ")

    Is there a way I can manipulate this formula so that I do not have to manually change the range from where I want the values to come from?

    E.g. I2-I4, the next selection would be I5-I7 but I want the formula to change automatically. Is this possible?
    Last edited by Jarron; 02-24-2015 at 11:24 PM.

  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
    53,051

    Re: Using IF, ISNUMBER and MAX function

    what does the rest of your data look like? do you have names in an adjacent column?

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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
    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
    53,051

    Re: Using IF, ISNUMBER and MAX function

    Perhaps something like this?

    F
    G
    H
    I
    2
    aa
    12
    aa
    10
    3
    bb
    15
    aa
    11
    4
    aa
    12
    5
    bb
    13
    6
    bb
    14
    7
    bb
    15

    G2=MAX(IF($H$2:$H$7=F2,$I$2:$I$7))
    This is an ARRAY formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  4. #4
    Registered User
    Join Date
    02-20-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Using IF, ISNUMBER and MAX function

    Thanks for your help.

    I need to use the ISNUMBER function too so that cells which are linked to cells that don't have data, I get blank values rather than zeros. Here is what i'm working with. I'm putting the highest value from sheet 1 for each person into sheet 2.
    Attached Files Attached Files

  5. #5
    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
    53,051

    Re: Using IF, ISNUMBER and MAX function

    Based on your data, try this ARRAY formula, copied down and across...
    =IF(MAX(IF(Data!$A$2:$A$7='Data for graph'!$A2,Data!C$2:C$7))=0,"",MAX(IF(Data!$A$2:$A$7='Data for graph'!$A2,Data!C$2:C$7)))

  6. #6
    Registered User
    Join Date
    02-20-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Using IF, ISNUMBER and MAX function

    Thanks for that - I've tried that array however it hasn't seemed to have worked. When I copy it into the cell it is prompting me to open a document to update the data from. I chose the same document but it was giving me an incorrect number. Thanks again for your help, it is greatly appreciated.

  7. #7
    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
    53,051

    Re: Using IF, ISNUMBER and MAX function

    Did you use CSE to enter it?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-20-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Using IF, ISNUMBER and MAX function

    Yeah I did try that. I changed the sheet names on the path you sent me, and did use CSE but still no luck.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2506
    Posts
    13,792

    Re: Using IF, ISNUMBER and MAX function

    Withdrawn by FR
    Last edited by FlameRetired; 02-25-2015 at 02:57 AM.

  10. #10
    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
    53,051

    Re: Using IF, ISNUMBER and MAX function

    If you changed the sheet names and get the "file open" window, that means that it cannot find that sheet name in that file. Check to make sure that the sheet name matches EXACTLY the name you are putting into the formula. Better yet, just reference it.

    Edit: Does the sheet name contain a space?
    If so, then you need to add ' around the name. See the differences below...
    =IF(MAX(IF(Data!$A$2:$A$7='Data for graph'!$A2,Data!C$2:C$7))=0,"",MAX(IF(Data!$A$2:$A$7='Data for graph'!$A2,Data!C$2:C$7)))
    =IF(MAX(IF('Data 1'!$A$2:$A$7='Data for graph'!$A2,'Data 1'!C$2:C$7))=0,"",MAX(IF('Data 1'!$A$2:$A$7='Data for graph'!$A2,'Data 1'!C$2:C$7)))

    This should not cause the problem you describe though
    Last edited by FDibbins; 02-25-2015 at 02:43 AM.

+ 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] IF(ISNUMBER(SEARCH function
    By NickT83 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 10:18 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. Nested isnumber function?
    By JCOOL1 in forum Excel General
    Replies: 6
    Last Post: 03-06-2012, 02:09 PM
  4. IsNumber function in VBA
    By nygwnj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2008, 02:47 PM
  5. [SOLVED] IsNumber & Mid function
    By El Bee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2006, 05:15 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