Reference relative to named range?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,532
Office Version
  1. 365
Platform
  1. Windows
I have a lot of applications where I need to compare a value in a named column in the same row with a value in that same column in an adjacent row. One example is to calculate the change in some value from one time period to the next.

Here's a simple example. Column C has some ratings. The entire column has been given the name "Ratings".

R/CCDEFG
5RatingChangeFormulaChangeFormula
610--------
712#REF!=Rating-OFFSET(Rating,-1,0)2=Rating-OFFSET(C7,-1,0)
88#REF!=Rating-OFFSET(Rating,-1,0)-4=Rating-OFFSET(C8,-1,0)
915#REF!=Rating-OFFSET(Rating,-1,0)7=Rating-OFFSET(C9,-1,0)

<tbody>
</tbody>

The formulas in F fail because the Offset function cannot use the named range "Rating".

Is there a formula I can use that will allow me to use the name Rating to get both the value in the same row and the one in the previous row?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Does this do it

=Rating-INDEX(Rating,ROW()-ROW(Rating),1)

Nice, that works perfectly. That's certainly better than cell references.

If only there were a way to index into named ranges relative to the current row. Something like
Code:
=Rating - Rating[-1]
would be so clear and easy. (sigh)
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,772
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top