Nathan Asius
New Member
- Joined
- Jan 15, 2024
- Messages
- 41
- Office Version
- 365
- Platform
- Windows
Previously this board solved my problem of building a formula for me that searches for a portion of a text nesting the arguments : IF(ISNUMBER(SEARCH..
the formula was this:
=IF(AND(ISNUMBER(SEARCH("44W",A1)),ISNUMBER(SEARCH("Willow",A2))),WillowSpecies, IF(AND(ISNUMBER(SEARCH("22F",A3)),ISNUMBER(SEARCH("Maple",A4))),MapleSpecies, IF(AND(ISNUMBER(SEARCH("6 Bark",A5)),ISNUMBER(SEARCH("Elm",A6))),ElmSpecies, IF(A7="Books","Bookcase",""))))
My sheet has evolved and I now need a tweak to include a wildcard in one of the search terms.
Instead of specifying the numbers 44W in the first arguments, or 22F in the second arguments etc.. I'm hoping there's a way to make a wildcard out of that search term so that it would now look something like 4_W or 4#W, meaning it would look for any number between the 4 and the W, or respectively the 2 and the F, but only allowing numbers. It would need to exclude letters.
Can this formula (not VBA) be expanded to have this wildcard type function?
the formula was this:
=IF(AND(ISNUMBER(SEARCH("44W",A1)),ISNUMBER(SEARCH("Willow",A2))),WillowSpecies, IF(AND(ISNUMBER(SEARCH("22F",A3)),ISNUMBER(SEARCH("Maple",A4))),MapleSpecies, IF(AND(ISNUMBER(SEARCH("6 Bark",A5)),ISNUMBER(SEARCH("Elm",A6))),ElmSpecies, IF(A7="Books","Bookcase",""))))
My sheet has evolved and I now need a tweak to include a wildcard in one of the search terms.
Instead of specifying the numbers 44W in the first arguments, or 22F in the second arguments etc.. I'm hoping there's a way to make a wildcard out of that search term so that it would now look something like 4_W or 4#W, meaning it would look for any number between the 4 and the W, or respectively the 2 and the F, but only allowing numbers. It would need to exclude letters.
Can this formula (not VBA) be expanded to have this wildcard type function?