+ Reply to Thread
Results 1 to 4 of 4

Difference between 2 cells in a dynamic range

  1. #1
    Registered User
    Join Date
    10-13-2022
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Difference between 2 cells in a dynamic range

    Hi, I am trying to write a formula which shows the difference between the two latest cells of data added in a row. For example, weekly forecasting, I want to see the difference between the current week and previous week (in week 2, the result is week 2 vs week 1, in week 3, the result is week 3 vs week 2...) I've attached an example table; the formula to go into cell G2. I tried using nested IF looking for blank cells but couldn't get it to work. Thanks in advance...
    Attached Files Attached Files
    Last edited by jonbadman; 10-14-2022 at 04:20 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Difference between 2 cells in a dynamic range

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-13-2022
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Re: Difference between 2 cells in a dynamic range

    Excellent, thanks for your help

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Difference between 2 cells in a dynamic range

    You're welcome.

+ 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. Dispatch dynamic range in a column according to dynamic cells values
    By elanB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2022, 08:58 AM
  2. [SOLVED] To check the position of a word in a range of cells & to get difference between the cells
    By KARTHICKNAIDU in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-03-2016, 09:07 AM
  3. Finding the smallest difference between a range of cells? Array formula?
    By dnlwstr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-19-2014, 11:10 AM
  4. [SOLVED] Formula to average range of cells only if difference between values is no more than 1
    By aaron85w in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-28-2013, 07:12 AM
  5. Table vs Range of Cells - Difference help
    By JayReina in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 09:38 AM
  6. [SOLVED] Sum the difference in a range of cells if greater than zero
    By krjacobs32 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-03-2012, 07:15 AM
  7. [SOLVED] Formular to calculate difference between cells if cells in a range are the same
    By CharlieZangel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 04:41 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