+ Reply to Thread
Results 1 to 11 of 11

Searching a formula for bring the last value of a column minus the first value.

  1. #1
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Searching a formula for bring the last value of a column minus the first value.

    Hello. i would like to bring back the last value from a column and subtract it with the first value of this column.

    The thing is everyday i enter new data and my last column number always change, and the row numbers also grow up. the first value is always the same and never change.

    So, i need a formula that can automatic keep the follow on my last value trough days/months.


    Thanks for your times.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Searching a formula for bring the last value of a column minus the first value.

    Let's say your values are in column A, try this...

    =INDEX(A:A,MATCH(9.99999999999999E+307,A:A))-A2
    HTH
    Regards, Jeff

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Searching a formula for bring the last value of a column minus the first value.

    Do you have a header row, so your data always starts in row 2?

    Is your data always contiguous, or might you have gaps in it?

    What column is your data in?

    Pete

  4. #4
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Re: Searching a formula for bring the last value of a column minus the first value.

    Thanks for help.

    @Pete_UK My data are always in numbers but can be +750 and sometimes -150 or any number.

    During last minutes i put more data in my sheet.

    So I tell the good Cells for make it easier.(

    B3 is my First value.

    in column C i will write all new value day by day and might be endless.

    Here what i try to do :

    = Last value of C column - G2(witch is my first value) / by G2 + H2(Witch are the numbers of days depending if green or red)
    Last edited by ImDavQc; 02-20-2021 at 11:57 PM.

  5. #5
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Re: Searching a formula for bring the last value of a column minus the first value.

    the only thing i dont know to make it possible is the formula for always find my last value in column C.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Searching a formula for bring the last value of a column minus the first value.

    Try...

    =INDEX(C:C,MATCH(9.99999999999999E+307,C:C))-G2

    Now to this, add the rest of what you need to calculate.

  7. #7
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Re: Searching a formula for bring the last value of a column minus the first value.

    hello, thx for your help and time.

    i tried your formula and it dont give me the correct result. it should give me around 329.

    here the excel sheet.

    In B Column only B3 Is Important.

    In C column only the last number

    C last column number - B3 / G2+H2
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Re: Searching a formula for bring the last value of a column minus the first value.

    When i do this for the straight answer =((C40-B3)/G2+H2) it give me 612.91

    if i use my computer calculator it give me 392.91. ;/

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Searching a formula for bring the last value of a column minus the first value.

    just take what Jeffery gave you and modify it based on what you wrote post #8 like...
    =(INDEX(C:C,MATCH(9.99999999999999E+307,C:C))-B3)/(G2+H2)
    that gives me a value of 361.89 which is also what I get with the calculator.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  10. #10
    Registered User
    Join Date
    10-08-2015
    Location
    quebec
    MS-Off Ver
    2010
    Posts
    18

    Re: Searching a formula for bring the last value of a column minus the first value.

    ok ill do it. thanks for everyone help.

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Searching a formula for bring the last value of a column minus the first value.

    you're welcome AND thanks for the rep!

+ 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] Excel Formula look for Three Senarios then Bring Column Data
    By farrukh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2019, 11:12 AM
  2. Formula to minus one column from another
    By oFernley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2016, 06:26 AM
  3. Replies: 8
    Last Post: 04-27-2014, 05:42 PM
  4. [SOLVED] Help to amend sumproduct formula to minus depending on entry in another column
    By KELLIS in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2013, 02:15 PM
  5. [SOLVED] Formula to plus minus and result in m column
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-18-2013, 05:50 AM
  6. Replies: 4
    Last Post: 04-13-2010, 09:29 AM
  7. how do you count a column minus dupicates minus blanks.
    By notEXCELing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2005, 08:48 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