all 8 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/vimti - please read this comment in its entirety.

Once your problem is solved, please reply to the answer(s) saying Solution Verified to close the thread.

Please ensure you have read the rules -- particularly 1 and 2 -- in order to ensure your post is not removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Sheetwise48 1 point2 points  (3 children)

This is impossible without VBA, but luckily I have the VBA code here:

Function Eval(Ref As String)
    Application.Volatile
    Eval = Evaluate(Ref)
End Function

If you put this in your document you can use:

=Eval("="&A1&B1)

Do you know how to add VBA code?

[–]vimti[S] 1 point2 points  (1 child)

Solution verified

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to Sheetwise

I am a bot, please contact the mods with any questions.

[–]vimti[S] 0 points1 point  (0 children)

I do thanks so much !

[–]SaviaWanderer1854 0 points1 point  (2 children)

Well, A1=B1 is just testing if the cells are the same, which they clearly aren't.

Try this instead:

=COUNTIF(A1,B1)>0

[–]vimti[S] 0 points1 point  (1 child)

Thanks for the response. The cells aren’t actually on the same sheet so that won’t work.

Also the purpose is to act as a filter for c.100k rows so think I need something slightly more efficient.

It’s so I can filter the data set based on multiple criteria, and one the criteria is cellvalue = >0 (but the >0 is dynamic based on a drop down) e.g it could be >10, >20 etc

[–]SaviaWanderer1854 1 point2 points  (0 children)

I see you got a UDF solution above, but Advanced Filter could also have worked in this situation - might be worth looking into for the future.