Home

#Dynamic Data Validation, Indirect, Offset# anyone can help?

%3CLINGO-SUB%20id%3D%22lingo-sub-862357%22%20slang%3D%22en-US%22%3E%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862357%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EI%20used%20INDIRECT%20to%20get%20a%20list%20for%20Data%20Validation%2C%20but%20the%20result%20is%20totally%20different%20in%20these%202%20scenarios.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EScenario%201%3A%20use%20offset%20to%20get%20a%20dinamic%20range%2C%20the%20result%20is%20error.%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132510iD21CB73AE1687BA4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132512i27A47D8903C0FDEC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EScenario%202%3A%20get%20a%20range%20without%20OFFSET%2C%20the%20result%20is%20normal.%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132511iFED3C69DF40A3239%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132514iD32009182C2BA9CD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_3.png%22%20title%3D%22clipboard_image_3.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132513i57922B391AFF9CEF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_4.png%22%20title%3D%22clipboard_image_4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-862357%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862551%22%20slang%3D%22en-US%22%3ERe%3A%20%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862551%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411507%22%20target%3D%22_blank%22%3E%40Kevin_Qiu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eoffset%20formula%20needs%20a%20height%20and%20a%20width.%20In%20your%20formula%20you%20have%20no%20value%20for%20height%20which%20should%20have%20been%20COUNTA%20formula%20and%201%20in%20your%20width%20area%20like%20below%3A%3C%2FP%3E%3CP%3E%3DOFFSET(Sheet1!%24C%241%3B%3B%3BCOUNTA(Sheet1!%24C%3A%24C)%3B1)%3C%2FP%3E%3CP%3Eif%20you%20do%20not%20enter%20any%20value%20in%20both%20height%20and%20width%20or%20enter%200%20in%20these%20fields%2C%20offset%20formula%20would%20return%20%23REF%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862782%22%20slang%3D%22en-US%22%3ERe%3A%20%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232473%22%20target%3D%22_blank%22%3E%40erol%20sinan%20zorlu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20so%20much%20for%20your%20time.%3C%2FP%3E%3CP%3EI%20revised%20the%20OFFSET%20formula%20and%20it%20referred%20to%20the%20right%20cells.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862788%22%20slang%3D%22en-US%22%3ERe%3A%20%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862788%22%20slang%3D%22en-US%22%3Ethank%20you%20so%20much%20for%20your%20time.%3CBR%20%2F%3EI%20revised%20the%20OFFSET%20formula%20and%20it%20referred%20to%20the%20right%20cells.%3CBR%20%2F%3Eafter%20that%2C%20i%20use%20INDIRECT%20in%20the%20data%20validation%2C%20the%20result%20is%20still%20the%20same.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-862898%22%20slang%3D%22en-US%22%3ERe%3A%20%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-862898%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411507%22%20target%3D%22_blank%22%3E%40Kevin_Qiu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fchandoo.org%2Fforum%2Fthreads%2Findirect-using-dynamic-named-range.12282%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fchandoo.org%2Fforum%2Fthreads%2Findirect-using-dynamic-named-range.12282%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-867014%22%20slang%3D%22en-US%22%3ERe%3A%20%23Dynamic%20Data%20Validation%2C%20Indirect%2C%20Offset%23%20anyone%20can%20help%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-867014%22%20slang%3D%22en-US%22%3Ethank%20you%20so%20much.%20but%20it's%20really%20hard%20for%20me%20to%20understand%20even%20though%20I've%20spent%20a%20few%20hours%20on%20it.%3C%2FLINGO-BODY%3E
Kevin_Qiu
New Contributor

I used INDIRECT to get a list for Data Validation, but the result is totally different in these 2 scenarios.

Scenario 1: use offset to get a dinamic range, the result is error.

clipboard_image_0.pngclipboard_image_1.png

Scenario 2: get a range without OFFSET, the result is normal.

clipboard_image_2.png

clipboard_image_3.pngclipboard_image_4.png

5 Replies

@Kevin_Qiu 

offset formula needs a height and a width. In your formula you have no value for height which should have been COUNTA formula and 1 in your width area like below:

=OFFSET(Sheet1!$C$1;;;COUNTA(Sheet1!$C:$C);1)

if you do not enter any value in both height and width or enter 0 in these fields, offset formula would return #REF error.

@erol sinan zorlu 

thank you so much for your time.

I revised the OFFSET formula and it referred to the right cells.

 
 
 
thank you so much for your time.
I revised the OFFSET formula and it referred to the right cells.
after that, i use INDIRECT in the data validation, the result is still the same.
thank you so much. but it's really hard for me to understand even though I've spent a few hours on it.
Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies