+ Reply to Thread
Results 1 to 3 of 3

Formula needed based on the condition of two subtotal cells.

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    51

    Question Formula needed based on the condition of two subtotal cells.

    I have a rental income spreadsheet where COLUMN C is 2011 income and COLUMN D is 2010 income. Totals for 2011 and 2010 can be found in cell C23 and D23 respectfully.

    I need a formula that would be able to show if only one year is completed (EITHER year), then the subtotal must = that year’s value found in either C23 or D23 and have it displayed in cell C25. If BOTH years are completed, then the subtotal must be the average of C23 and D23 and displayed in cell C25.

    I currently have in cell C25:
    =IF(D23>=1,(C23+D23)/2,C23)


    Any help would be GREATLY appreciated.

  2. #2
    Registered User
    Join Date
    06-19-2012
    Location
    N/A
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Formula needed based on the condition of two subtotal cells.

    There may be a simpler solution but this seems to work:

    Please Login or Register  to view this content.
    Hope this helps.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula needed based on the condition of two subtotal cells.

    Hi

    Do you mean?

    =IF(AND(C23>1,D23>1),AVERAGE(C23:D23),IF(C23>1,C23,IF(D23>1,D23,"")))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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