+ Reply to Thread
Results 1 to 2 of 2

Change cell reference in formulas based on row condition

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Change cell reference in formulas based on row condition

    I have a spreadsheet that calculates distances between 2 points within groups of data.

    The first row in each group will contain a blank cell signifying the starting point of the new data group.

    The rest of the rows beneath it will reference the lat, long coordinates on that header row when performing the distance calculation.

    The problem is, that I have to repeat this several times, and the only way to tell when to change the reference header (starting point of a new group) is when there is a blank in column B.

    So, every time a blank is encountered, the absolute references in my formula would need to change to reflect distance calculations against the new header site.

    I've attached a sample workbook which illustrates this, and I am presently updating the absolute cell references manually, but would like to have a formula that can detect a change (null value in Col B) and update the new reference cell accordingly in the formula.

    Sufficed to say, I would really appreciate some help on this!
    Attached Files Attached Files
    Last edited by hamidxa; 08-04-2015 at 04:33 PM.

  2. #2
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Change cell reference in formulas based on row condition

    hi scholar

    here is your result

    god bless

    regards

    vijay
    Attached Files Attached Files

+ 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] Change cell color based on a condition
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2014, 02:29 PM
  2. change cell reference based on vba code
    By zak.horrocks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2014, 09:42 AM
  3. [SOLVED] How to change the reference worksheet based on a value of a cell
    By macnabong in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2014, 09:33 AM
  4. User Input to change cell reference in formulas
    By williampdx in forum Excel General
    Replies: 5
    Last Post: 03-31-2010, 02:04 PM
  5. I want to change a cell reference based on where the cursor is.
    By 7redmetal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2005, 03:45 AM
  6. VBA: how to... cell properties has to change based on a condition
    By will99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2005, 12:51 PM
  7. [SOLVED] Change cell format based on condition.
    By Patrick Simonds in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-03-2005, 12:05 PM

Tags for this Thread

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