+ Reply to Thread
Results 1 to 6 of 6

If statement

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    If statement

    I need data in one cell in sheet 1 to pick up data from sheet 2, either in column A or column B, depending which is greater. Therefore i need an if statement to pick up the higher value - any helpers? Many thanks.
    Last edited by VBA Noob; 05-14-2008 at 02:16 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =Max(Sheet2!A1,Sheet2!B1) will take max of A1 or B1 from Sheet2
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-16-2007
    Posts
    54

    Question

    Ok, but what I’m doing is summing up a match on cell U59 in sheet 1 with column C in sheet 2, this then totals the figures in column I, the formulae is as follows:


    =SUMIF('Sheet2'!C:C,Sheet1!U59,'Sheet2'!I:I)



    But what I need to do is pick up the total of column I, or column J, depending on which is greater … so, how do I get you max formulae to work with my original?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Do you mean?

    Please Login or Register  to view this content.
    or are you looking for the max of each I or J and then sum those up?

    Edit:

    If you mean the ladder... then


    Please Login or Register  to view this content.
    which must be confirmed with CTRL+SHIFT+ENTER keys not just ENTER.. you will see { } brackets around the formula.

    Note: You cannot use whole column references with the last formula unless you have XL2007. Adjust ranges to suit
    Last edited by NBVC; 05-14-2008 at 02:46 PM.

  5. #5
    Registered User
    Join Date
    02-16-2007
    Posts
    54
    yes, i'm looking for the max of column I against the max of column J, and use the highest total. Thanks for you help!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by BUSJEDWA
    yes, i'm looking for the max of column I against the max of column J, and use the highest total. Thanks for you help!
    Still ain't 100% sure which you're after. ... but if noticed I edited my last post to include another option... one of those 2 formulas should do the trick....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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