Hi All,
Thanks in advance for your help. Currently I have been provided with an excel template that requires me to select specific items to be assigned to a user; this data will then be imported into an SQL database.
Below is the template format I am locked into.
<tbody>
</tbody>
Now what I would like to do instead of going across and selecting Y from the drop down is to write a formula that allows for an auto insert of Y based on text in a field as per the below.
<tbody>
</tbody>
If I am happy to individually comma separate the numbers then it is easy as I can just do =IF(ISNUMBER(SEARCH(E1,$F$2)),"Y","N")
The problem I have is that I have literally hundreds of items and would love to just be able to enter 1-5 and have it return a Y for any number between 1 and 5. Of course I am happy for it not to be a hyphen.
Looking forward to someone smarter than me lending a helping hand.
Thanks in advance for your help. Currently I have been provided with an excel template that requires me to select specific items to be assigned to a user; this data will then be imported into an SQL database.
Below is the template format I am locked into.
First Name | Surname | ID | Item 1 | Item 2 | Item 3 | Item 4 | Item 5 | Item 6 | |
Fred | Nerd | 1234 | Y | Y | Y | Y | |||
Sally | Nerd | 4321 | Y | Y | Y |
<tbody>
</tbody>
Now what I would like to do instead of going across and selecting Y from the drop down is to write a formula that allows for an auto insert of Y based on text in a field as per the below.
First Name | Surname | ID | Items | 1 | 2 | 3 | 4 | 5 | |
Fred | Nerd | 1234 | 1,3-5 | Y | Y | Y | Y | ||
Sally | Nerd | 4321 | 2,3,5 | Y | Y | Y |
<tbody>
</tbody>
If I am happy to individually comma separate the numbers then it is easy as I can just do =IF(ISNUMBER(SEARCH(E1,$F$2)),"Y","N")
The problem I have is that I have literally hundreds of items and would love to just be able to enter 1-5 and have it return a Y for any number between 1 and 5. Of course I am happy for it not to be a hyphen.
Looking forward to someone smarter than me lending a helping hand.