Datavalidation and unique with match and offset ERROR

quarna

New Member
Joined
Oct 25, 2021
Messages
38
Office Version
  1. 365
Platform
  1. Windows
HI

=offset(beregning!$C$1,1,match(beregning!$C$1,beregning!$C$1,0)-1,count(offset(beregning!$C$1,1,match(beregning!$C$1,beregning!$C$1,0)-1,10,1)),1)

This line works fine with datavalidation list, but i have multiple duplicates in the sheet and i dont wont them in the list.


=unique(offset(beregning!$C$1,1,match(beregning!$C$1,beregning!$C$1,0)-1,count(offset(beregning!$C$1,1,match(beregning!$C$1,beregning!$C$1,0)-1,10,1)),1))

this line works in a cell, but when trying to put it in datavalidation list, it returns an error and does not function at all.


::::
I have replaced ; with , and renamed to formulas to english version, so it might be a little of here, i dont know.

Thank you
/kim
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You cannot use a formula like that in data validation, however you could use this formula in another cell & refer to that in the DV.
Excel Formula:
=UNIQUE(beregning!C2:C11)
If that formula is in A2 you would simply use
Excel Formula:
=A2#
in the DV
 
Upvote 0
Solution
Hi

Thank you.

Honestly i thought i already had tried the way you said, but i guess i havent, because that works almost fine for me.
There is 1 thing that dosnt work though.
When the range C2:C11 changes values. The validationlist dosnt show the newest value until you press the arrow to openup the list.
Why is that ?
 
Upvote 0
How do you know the DV doesn't show the changes without clicking on the arrow?
 
Upvote 0
How do you know the DV doesn't show the changes without clicking on the arrow?
The visible cell shows the "old" value until you press the arrow and open the list.
But i understand thats how validation function works after browsing around the forum.
So i guess i have to find some other way around it
 
Upvote 0
But i understand thats how validation function works
That is indeed how it works. Changing the list does not affect what is already in the cell.
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,765
Members
449,121
Latest member
Vamshi 8143

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top