Home

complex referencing and indexing

%3CLINGO-SUB%20id%3D%22lingo-sub-391550%22%20slang%3D%22en-US%22%3Ecomplex%20referencing%20and%20indexing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391550%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20small%20extract%20of%20a%20much%20larger%20file%2C%20attached.%26nbsp%3B%20The%20idea%20is%20that%20with%20each%20customer%20group%2C%20there%20are%20a%20set%20of%20assumptions.%26nbsp%3B%20Not%20all%20of%20them%20will%20be%20only%2013%20assumptions.%26nbsp%3B%20It's%20fine%20to%20assume%20all%20of%20them%20will%20be%203%20months'%20worth%20of%20columns.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERight%20now%20if%20I%20need%20to%20copy%20and%20make%20another%20set%20of%20customer%20group%20assumptions%2C%20I%20have%20to%20do%20the%20following%20steps%3A%3C%2FP%3E%3CP%3E-%20copy%20the%20assumptions%20area%20towards%20the%20right%3C%2FP%3E%3CP%3E-%20name%20the%20customer%20group%20name%20on%20top%20(for%20identification%20purposes...serves%20no%20functional%20value%2C%20but%20that's%20one%20of%20my%20ideas%20for%20how%20to%20improve%20this)%3C%2FP%3E%3CP%3E-%20copy%20all%20the%20pivot%20data%20lines%20associated%20with%20a%20customer%20group%2C%20and%20then%20change%20the%20amount%20formula%3C%2FP%3E%3CP%3E-%20right%20now%20the%20way%20I'm%20changing%20the%20account%20formula%20is%20to%20go%20into%20the%20first%20one%2C%20tweak%20the%20index%20ranges%20to%20match%20where%20the%20newly%20created%20assumptions%20area%20is%2C%20and%20then%20copy%20that%20down%20to%20the%20rest%20of%20the%20customer%20group's%20amount%20cells.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20inefficiency%20with%20the%20above%20is%20that%20for%20every%20customer%20group%20(and%20there%20are%20many%20we%20are%20trying%20to%20model)%2C%20it%20is%20a%20back%20and%20forth%20process%20to%20find%20the%20starting%20point%2C%20make%20sure%20the%20rows%20height%20is%20correct%2C%20etc.).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI.%20Ideally%2C%20I'd%20like%20to%20somehow%20use%20the%20Customer%20Group%20column%20in%20pivot%20data%20list%2C%20to%20include%20in%20the%20formula%2C%20so%20that%20the%20starting%20point%20of%20the%20index%20is%20actually%20a%20result%20of%20the%20formula%20looking%20in%20row%202%2C%20to%20find%20the%20match%20for%20the%20customer%20group%20name%2C%20and%20then%20because%20it's%20found%20that%20location%2C%20use%20that%20as%20the%20starting%20point%20for%20the%20rest%20of%20the%20Index.%26nbsp%3B%20I%20have%20accomplished%20finding%20the%20cell%20reference%20with%20the%20formula%20in%20L5.%26nbsp%3B%20That%20gives%20me%20an%20address%20of%20the%20starting%20point%20from%20which%20I%20need%20to%20count%20down%20X%20rows%20(of%20assumptions)%20and%20right%203%20columns%20(for%20a%20total%20of%204%20columns%20in%20the%20range).%26nbsp%3B%20Without%20going%20on%20to%20part%20II%20below%2C%20I%20don't%20know%20how%20to%20integrate%20the%20L5%20formula%20into%20any%20of%20the%20pivot%20list%20Amount%20formulas%20from%20row%2023%20down.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EII.%20assuming%20the%20above%20can%20work%2C%20then%20next%20thing%20I%20need%20is%20to%20be%20able%20to%20define%20a%20range%20around%20it%20which%20is%20not%20fixed%2C%20but%20rather%20looks%20to%20see%20what%20the%20last%20non-blank%20cell%20is%2C%20and%20starting%20with%20the%20found%20starting%20point%2C%20goes%20to%20that%20last%20cell...and%20then%20uses%204%20columns%20of%20width%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20either%2Fboth%20of%20the%20above%2C%20would%20be%20great.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20ideas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-391550%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
txrussianguy
Contributor

I have a small extract of a much larger file, attached.  The idea is that with each customer group, there are a set of assumptions.  Not all of them will be only 13 assumptions.  It's fine to assume all of them will be 3 months' worth of columns. 

 

Right now if I need to copy and make another set of customer group assumptions, I have to do the following steps:

- copy the assumptions area towards the right

- name the customer group name on top (for identification purposes...serves no functional value, but that's one of my ideas for how to improve this)

- copy all the pivot data lines associated with a customer group, and then change the amount formula

- right now the way I'm changing the account formula is to go into the first one, tweak the index ranges to match where the newly created assumptions area is, and then copy that down to the rest of the customer group's amount cells.

 

The inefficiency with the above is that for every customer group (and there are many we are trying to model), it is a back and forth process to find the starting point, make sure the rows height is correct, etc.).

 

I. Ideally, I'd like to somehow use the Customer Group column in pivot data list, to include in the formula, so that the starting point of the index is actually a result of the formula looking in row 2, to find the match for the customer group name, and then because it's found that location, use that as the starting point for the rest of the Index.  I have accomplished finding the cell reference with the formula in L5.  That gives me an address of the starting point from which I need to count down X rows (of assumptions) and right 3 columns (for a total of 4 columns in the range).  Without going on to part II below, I don't know how to integrate the L5 formula into any of the pivot list Amount formulas from row 23 down.

 

II. assuming the above can work, then next thing I need is to be able to define a range around it which is not fixed, but rather looks to see what the last non-blank cell is, and starting with the found starting point, goes to that last cell...and then uses 4 columns of width

 

If either/both of the above, would be great.

 

Thanks for any ideas.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies