Replace text in named range with text extracted from another cell in XL2010

plateo2000

New Member
Joined
Mar 16, 2015
Messages
8
Have simple formulas using named ranges to copy down column and would like to replace the last four digits in the named range based on the last four digits in the cell to the left rather than manually changing the year in the named range:

Cells to left:
FYE2006 =sum(adminsalaries2006)
FYE2007 =sum(adminsalaries2007)
FYE2008 =sum(adminsalaries2008)
...
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Welcome to the Board!

Let's say that "FYE2006" is in cell A2. Then use this formula for the sum you want:
Code:
=SUM(INDIRECT("[COLOR=#333333]adminsalaries[/COLOR]" & RIGHT(A2,4)))
 
Upvote 0
Thank you Joe4. I have Mr. Jelen's 2010 book now and will dedicate this evening to the exploration of "Indirect."
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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