+ Reply to Thread
Results 1 to 6 of 6

Calculation and IF Together

  1. #1
    Registered User
    Join Date
    07-31-2008
    Location
    Gold Coast, Australia
    Posts
    6

    Calculation and IF Together

    I am new to excel and need an experts help on a simple formula

    I want to add the total of B21:B30 and if it is less than the value of C21:C30 then
    Display "Team 2 Win" and vice versa.

    Team 1 is the B Column
    Team 2 is the C Column

    This is what I got:
    =SUMIF((B21:B30>C21:C30),"Team 1 Win","Team 2 Win")

    Was I way off? BTW I am using Excel 2003.

    thanks in advance!
    Ben

  2. #2
    Registered User
    Join Date
    07-30-2008
    Location
    ITALY
    Posts
    6
    You have to edit the sum function "inside" the formula:
    if(sum(a1:a30)>sum(B1:b30);"A win";"B win")

  3. #3
    Registered User
    Join Date
    07-31-2008
    Location
    Gold Coast, Australia
    Posts
    6

    Thanks!

    Thanyou Jeff for your help~!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    What if they're the same?

  5. #5
    Registered User
    Join Date
    07-31-2008
    Location
    Gold Coast, Australia
    Posts
    6

    Cool ahhhhhh

    Good Question! I didn't think of that!

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You could use this formula

    =IF(COUNT(B21:C30),CHOOSE(SIGN(SUM(C21:C30)-SUM(B21:B30))+2,"Team 1 Win","Tie","Team 2 Win"),"")

    It only shows "Tie" when scores are level but there's at least one value -

+ 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