Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-09-2020, 07:59 PM
p45cal's Avatar
p45cal p45cal is offline Automatically populate cell with data from column in sequential order Windows 10 Automatically populate cell with data from column in sequential order Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

In the attached (stolen from ArviLaanemets) there's a yellow cell E2 which currently has the formula pointing to cell B18. This is for your starting cell adjustment.
The numbers in the first row from columns F to J are the numbers of results you want in the columns below. For you to adjust.
The formulae which do the work are in cells F13 to J13. Depending on your version of Excel, you may have to array-enter these formulae (commit to the sheet using Ctrl+Shift+Enter rather than the more usual Enter), what's more you may have to select, for example, cells F13:F40 while array-entering that formula to cater for the greatest number of results you might want to see in that column; this might result in several #N/A errors in the cell which you could hide with:
Code:
=IFERROR(OFFSET(INDIRECT(MID(FORMULATEXT($E$2),2,99)),SUM($E$1:E$1),0,F$1),"")
The current versions of Excel don't need all that, just the entry of the formula into F13 alone.
Whichever way you have to do it, you can copy across.
I've used
MID(FORMULATEXT($E$2),2,99)
to get the address of a cell from the formula; you might find it easier to type in B18 into that cell without the preceding = sign and change the formula in F13 to a more straightforward:
Code:
=OFFSET(INDIRECT($E$2),SUM($E$1:E$1),0,F$1)
Attached Files
File Type: xlsx msofficeforums46119Example_Offset.xlsx (12.0 KB, 15 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically populate cell with data from column in sequential order Drop Down List to Automatically Populate Data in a Table src144 Word VBA 8 12-03-2020 04:15 PM
How to auto-populate data based on cell value ag2686 Excel 2 06-13-2018 09:19 PM
Automatically populate cell with data from column in sequential order Automatically Organize data in a sheet differently (in order to create a dynamically updated graph) carlos_cs Excel 3 05-04-2016 08:44 AM
How to populate cells in Sheet2 with Data Source query using cell data from Sheet1 bobznkazoo Excel 2 03-27-2014 11:14 AM
Automatically populate cell with data from column in sequential order Populate Data to another cell Mrkieth Excel 2 04-29-2013 07:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:41 PM.


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