Is there a way to change this formula to allow for two more conditions to be in the filter
=FILTER(CQ16:CR117,ISNUMBER(SEARCH("*-*",CR16:CR117)),"")
those conditions being or "*SICK*" or "*TRAINING*" within the same range.
Is there a way to change this formula to allow for two more conditions to be in the filter
=FILTER(CQ16:CR117,ISNUMBER(SEARCH("*-*",CR16:CR117)),"")
those conditions being or "*SICK*" or "*TRAINING*" within the same range.
Last edited by chrismg; 02-13-2024 at 03:49 AM.
You could try this (untested):
=FILTER(CQ16:CR117,(ISNUMBER(SEARCH("*-*",CR16:CR117))+(ISNUMBER(SEARCH("*SICK*",CR16:CR117))+(ISNUMBER(SEARCH("*TRAINING*",CR16:CR117))),"")
There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.
A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Unfortunately that didn't work it says formula in this cell contains an error.
Last edited by AliGW; 02-13-2024 at 02:54 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.
Then please provide a sample workbook. And please stop quoting unnecessarily.
No workbook yet, so one further guess:
=FILTER(CQ16:CR117,OR(ISNUMBER(SEARCH({"*-*","*SICK*","*TRAINING*"},CR16:CR117))),"")
Last edited by AliGW; 02-13-2024 at 03:36 AM. Reason: Typo fixed.
sorry, that one returned a valueerror. I just attached a sample workbook.
OK - no wonder the formulae weren't working. This is why a sample workbook at the outset would have been a good idea.
Can you explain how I would know which of the rows would be SICK or TRAINING? Those words don't appear anywhere in that range (the one that's already filtered), so you can't filter using them. I think we need some more detail.
EDIT: Oh, wait - I think I see what you mean. Hang on ...
Last edited by AliGW; 02-13-2024 at 03:57 AM.
Try this:
=FILTER(A16:B117,(ISNUMBER(SEARCH("*-*",B16:B117))+(B16:B117="SICK")+(B16:B117="TRAINING")),"")
SICK and or TRAINING would be present in Column B there is no TRAINING currently so its not in there right now. There are 3 SICK though in rows 94-96.
See post #8.
that returned a Valueerror, one sec I'll open what you attached first.
It shouldn't!
AliGW on MS365 Beta Channel (Windows 11) 64 bit
D E 16 1430-1300 17 2430-1300 18 3430-1300 19 5500-1330 20 6500-1330 21 7500-1330 22 8500-1330 23 9530-1200 24 10530-1400 25 11545-1415 26 13600-1000 27 14600-1000 28 15600-1230 29 16600-1330 30 17600-1330 31 18600-1330 32 19600-1330 33 20600-1330 34 21600-1330 35 22600-1430 36 23600-1430 37 24600-1430 38 25600-1430 39 26600-1430 40 27600-1430 41 28600-1430 42 29600-1430 43 30600-1430 44 31600-1430 45 32600-1430 46 33600-1430 47 34630-1330 48 37700-1100 49 38700-1530 50 397-1530 51 40800-1200 52 51TRAINING 53 70SICK 54 71SICK 55 72SICK
Sheet: Sheet2
Yeah, I saw that it worked in the workbook you linked too, weird. All I did was change the range applicable in my sheet and it's returning a valueerror. The only difference of in my layout is the Columns are CP and CQ instead of A and B.
OK, well once again, without seeing the actual data, it's impossible to guess, but either there's something different about the real data or you've done something wrong.
Unfortunately you can't diagnose an engine problem without having the car in front of you and the bonnet open.
Damn, for the sample I gave you I copy and pasted the exact columns and just removed all the names with those numbers in column A. So I really don't know.
wait I got it, I did type it wrong. Thanks so much, works great. Adding reputation for sure. This may even solve my problem for the other question I gave up on if you remember.
So can you produce a sample workbook where the error manifests itself? Because without one, I have nothing to go on.
Glad to have helped.
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
disregard, I corrected a keystroke error.
Yes, I noticed. See post #18.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks