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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Surname[/TD]
[TD]ID[/TD]
[TD][/TD]
[TD]Item 1 [/TD]
[TD]Item 2[/TD]
[TD]Item 3[/TD]
[TD]Item 4[/TD]
[TD]Item 5[/TD]
[TD]Item 6[/TD]
[/TR]
[TR]
[TD]Fred [/TD]
[TD]Nerd[/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally[/TD]
[TD]Nerd[/TD]
[TD]4321[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Surname[/TD]
[TD]ID[/TD]
[TD][/TD]
[TD]Items[/TD]
[TD]1[/TD]
[TD] 2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nerd[/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]1,3-5[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Sally [/TD]
[TD]Nerd[/TD]
[TD]4321[/TD]
[TD][/TD]
[TD]2,3,5[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Surname[/TD]
[TD]ID[/TD]
[TD][/TD]
[TD]Item 1 [/TD]
[TD]Item 2[/TD]
[TD]Item 3[/TD]
[TD]Item 4[/TD]
[TD]Item 5[/TD]
[TD]Item 6[/TD]
[/TR]
[TR]
[TD]Fred [/TD]
[TD]Nerd[/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally[/TD]
[TD]Nerd[/TD]
[TD]4321[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Surname[/TD]
[TD]ID[/TD]
[TD][/TD]
[TD]Items[/TD]
[TD]1[/TD]
[TD] 2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nerd[/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]1,3-5[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]Sally [/TD]
[TD]Nerd[/TD]
[TD]4321[/TD]
[TD][/TD]
[TD]2,3,5[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
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.