+ Reply to Thread
Results 1 to 6 of 6

Subtracting formula help

  1. #1
    Registered User
    Join Date
    01-18-2017
    Location
    Ottawa, Ontario
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Subtracting formula help

    Hi everyone

    Sorry I'm not up on the terminology of excel and the formulas.
    I am making a spreadsheet that will track measurements for a gym trainer who wants to track their clients monthly measurements. I need the formula to show a total loss.
    So I will enter a number for January, subtract Februarys measurement from January to get the total loss.
    But now I'm lost. To show the total loss for March I need the formula to recognize that I now have to subtract March's Measurement from January. Februarys measurement is no longer valid.

    Any idea how to do this?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Subtracting formula help

    Try this in C18 then copy across.

    =IFERROR(C$5-LOOKUP(2,1/(C$5:C$16<>""),C$5:C$16),"")
    If I've helped U pls click on d *Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Subtracting formula help

    Try this in C18 then copy across.


    =IFERROR(C$5-LOOKUP(2,1/(C$5:C$16<>""),C$5:C$16),"")

  4. #4
    Registered User
    Join Date
    01-18-2017
    Location
    Ottawa, Ontario
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Re: Subtracting formula help

    Thank you #bhenlee ! That works perfectly!
    I would love to understand how to figure these formulas out on my own. It looks so complicated when you don't understand the language.

  5. #5
    Registered User
    Join Date
    01-18-2017
    Location
    Ottawa, Ontario
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Re: Subtracting formula help

    I see you changed the formula to include IFERROR?
    I tried that and it will add numbers to the total for an empty column.
    The first formula does work: =D$5-LOOKUP(2,1/(D$5:D$16<>""),D$5:D$16)

  6. #6
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Subtracting formula help

    I'll try to explain it but please bear with me.

    The lookup function will look for the last cell with value in rows 5:16

    The IFERROR function provides another option in case there are no data in the range

+ 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. Subtracting Dates Formula
    By ChrisBryant in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2016, 07:53 PM
  2. [SOLVED] Help with subtracting formula
    By tanyamcshane in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2015, 04:48 PM
  3. Subtracting a % Formula
    By bryguy73 in forum Excel General
    Replies: 4
    Last Post: 09-06-2011, 07:31 PM
  4. Subtracting formula
    By freefallin in forum Excel General
    Replies: 1
    Last Post: 01-18-2011, 08:59 AM
  5. Formula for subtracting a percentage
    By Daffs in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-14-2010, 06:13 PM
  6. Subtracting the results of a formula
    By David A in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2008, 12:28 AM
  7. formula for subtracting
    By evilsnugglybunn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2007, 05:25 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