![]() |
#6
|
||||
|
||||
![]()
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),"") 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) |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
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 |
![]() |
Mrkieth | Excel | 2 | 04-29-2013 07:30 AM |