SOLVED

Who can help a beginner?

%3CLINGO-SUB%20id%3D%22lingo-sub-3193700%22%20slang%3D%22en-US%22%3EWho%20can%20help%20a%20beginner%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193700%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20screenshot%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PAtesting_0-1645453829710.png%22%20style%3D%22width%3A%20549px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350028iF6B39BBADF9CD923%2Fimage-dimensions%2F549x201%3Fv%3Dv2%22%20width%3D%22549%22%20height%3D%22201%22%20role%3D%22button%22%20title%3D%22PAtesting_0-1645453829710.png%22%20alt%3D%22PAtesting_0-1645453829710.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20%3DCOUNTA%20and%20a%20%3DCOUNTIF%20formula%20(in%20this%20example%20they%20are%20in%20Dutch)%2C%20which%20range%20for%20both%20starts%20in%20the%20table%20above%20(G2).%20This%20table%20is%20automated%20and%20has%20AutoFill%20to%20fill%20in%20the%20cells.%20However%2C%20when%20it%20does%2C%20the%20range%20in%20the%20aforementioned%20formula%20automatically%20switches%20to%20G3..G4...G5%20and%20so%20on.%20It%20doesn't%20stay%20locked%20on%20G2%3AG-)%2C%20which%20means%20that%20it%20keeps%20the%20formula%20from%20working.%20See%20second%20screenshot%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22see%20formula%20range%2C%20''G3''%20which%20is%20outside%20of%20the%20table%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350030iE913AE2D33D76DF0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22PAtesting_1-1645454247283.png%22%20alt%3D%22see%20formula%20range%2C%20''G3''%20which%20is%20outside%20of%20the%20table%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Esee%20formula%20range%2C%20''G3''%20which%20is%20outside%20of%20the%20table%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Esee%20formula%20range%20''G3''%2C%20which%20is%20outside%20of%20the%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20knows%20what%20to%20do%3F%20Hope%20my%20problem%20is%20clear%20enough.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3193700%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3193816%22%20slang%3D%22en-US%22%3ERe%3A%20Who%20can%20help%20a%20beginner%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1313580%22%20target%3D%22_blank%22%3E%40PAtesting%3C%2FA%3E%26nbsp%3BYou%20are%20working%20with%20structured%20tables%2C%20so%20it's%20better%20not%20to%20use%20direct%20cell%20references.%20Rather%20than%20writing%20G2%3AG9998%2C%20hover%20the%20pointer%20over%20the%20column%20header%20(i.e.%20the%20blue%20cell%20in%20column%20G)%20until%20you%20see%20a%20thick%20black%20arrow%20pointing%20downwards.%20Click%2C%20and%20a%20structured%20reference%20to%20the%20entire%20column%20in%20the%20table%20will%20be%20created.%20This%20reference%20will%20automatically%20expand%20when%20you%20add%20new%20rows%20to%20the%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOtherwise%2C%20Google%20for%20structured%20Excel%20tables%20and%20you'll%20find%20plenty%20of%20tutorials%20how%20to%20handle%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3193859%22%20slang%3D%22en-US%22%3ERe%3A%20Who%20can%20help%20a%20beginner%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193859%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1313580%22%20target%3D%22_blank%22%3E%40PAtesting%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20special%20notation%20that%20is%20used%20to%20refer%20to%20areas%20of%20an%20Excel%20Table.%26nbsp%3B%20For%20a%20complete%20column%20the%20table%20name%20comes%20first%20then%20the%20column%20name%20(taken%20from%20the%20header)%20in%20square%20brackets.%26nbsp%3B%20The%20cells%20referenced%20by%20such%20notation%20extend%20as%20rows%20are%20added%20to%20the%20table%2C%20for%20example%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D%20TABLE1%5BAFGEHANDELD_BINNEN_DEADLINE%5D%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello all,

 

See screenshot below:

 

PAtesting_0-1645453829710.png

 

I have a =COUNTA and a =COUNTIF formula (in this example they are in Dutch), which range for both starts in the table above (G2). This table is automated and has AutoFill to fill in the cells. However, when it does, the range in the aforementioned formula automatically switches to G3..G4...G5 and so on. It doesn't stay locked on G2:G-), which means that it keeps the formula from working. See second screenshot:

 

see formula range, ''G3'' which is outside of the tablesee formula range, ''G3'' which is outside of the table

see formula range ''G3'', which is outside of the table.

 

Anyone knows what to do? Hope my problem is clear enough.

 

Thanks

 

 

 

2 Replies

@PAtesting You are working with structured tables, so it's better not to use direct cell references. Rather than writing G2:G9998, hover the pointer over the column header (i.e. the blue cell in column G) until you see a thick black arrow pointing downwards. Click, and a structured reference to the entire column in the table will be created. This reference will automatically expand when you add new rows to the table.

 

Otherwise, Google for structured Excel tables and you'll find plenty of tutorials how to handle them.

best response confirmed by PAtesting (Occasional Contributor)
Solution

@PAtesting 

There is a special notation that is used to refer to areas of an Excel Table.  For a complete column the table name comes first then the column name (taken from the header) in square brackets.  The cells referenced by such notation extend as rows are added to the table, for example

= TABLE1[AFGEHANDELD_BINNEN_DEADLINE]