Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2024, 02:29 AM
Marcia's Avatar
Marcia Marcia is offline How to change the row references in a formula when copied Windows 11 How to change the row references in a formula when copied Office 2021
Expert
How to change the row references in a formula when copied
 
Join Date: May 2018
Location: Philippines
Posts: 553
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default How to change the row references in a formula when copied

Hi. I work with a template with a start and end data in separate columns. The end data in the first week is the start data of the second week. Is there a way that when the previous template of the previous week is copied, the row references of the formula of start column are automatically adjusted when copied in the next week?
I have attached a sample for clarity.


Thank you.
Attached Files
File Type: xlsx Dynamic Row Reference.xlsx (10.0 KB, 6 views)
Reply With Quote
  #2  
Old 08-21-2024, 04:06 AM
ArviLaanemets ArviLaanemets is offline How to change the row references in a formula when copied Windows 8 How to change the row references in a formula when copied Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

P.e. into cell C26 enter the formula
=OFFSET($B26,-10,4)
and copy down until C31.

When the number of rows between top rows of all weekly tables remains same, the formula will work (of-course topmost table must be set up manually).
Reply With Quote
  #3  
Old 08-21-2024, 07:04 AM
Marcia's Avatar
Marcia Marcia is offline How to change the row references in a formula when copied Windows 11 How to change the row references in a formula when copied Office 2021
Expert
How to change the row references in a formula when copied
 
Join Date: May 2018
Location: Philippines
Posts: 553
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you Arvil, but how about the xlookup in the formula?
Reply With Quote
  #4  
Old 08-21-2024, 06:32 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to change the row references in a formula when copied Windows 10 How to change the row references in a formula when copied Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

In C16 enter relative referencing
Code:
=XLOOKUP($B16,$B6:$B11,$F6:$F11,"")
and pull down to C20.
Select B15:F22
- Copy
- Go to the desired place (e.g. B25)
- Paste Special
- Formulas
- OK


FYI OFFSET is a volatile function
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 08-21-2024, 07:17 AM
Marcia's Avatar
Marcia Marcia is offline How to change the row references in a formula when copied Windows 11 How to change the row references in a formula when copied Office 2021
Expert
How to change the row references in a formula when copied
 
Join Date: May 2018
Location: Philippines
Posts: 553
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Pecoflyer View Post
In C16 enter relative referencing
Code:
=XLOOKUP($B16,$B6:$B11,$F6:$F11,"")
and pull down to C20.
Select B15:F22
- Copy
- Go to the desired place (e.g. B25)
- Paste Special
- Formulas
- OK


FYI OFFSET is a volatile function
Thank you. This is exactly what I am looking for.
Reply With Quote
  #6  
Old 08-22-2024, 12:14 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to change the row references in a formula when copied Windows 10 How to change the row references in a formula when copied Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

You're welcome
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copied Sheet adds to formula? ShankedS Excel 4 10-28-2017 05:52 AM
Excel Office 365 Mac - Colour Change after copied to Workbook Kenlyn Excel 0 03-30-2017 04:15 AM
Cell Ref does not automatically change when formula is copied because of data orientation Kristinmc Excel 4 08-01-2016 10:57 AM
How to change the row references in a formula when copied formula lost when copied between files sandsoppa Excel 2 02-14-2012 10:38 AM
Formula not getting copied to entire column theacegary Excel 1 11-29-2010 02:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft