Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hello, I have 1000 ID numbers and I want to reference those ID numbers in a line of text. Basically, I have 1000 lines of text I need to write and want to use excel to do it. What I want to do is something like this: if x= 'contents of A1' then i1 = 1 otherwise if x<'contents of A1' then i1= 0 if x= 'contents of A2' then i2 = 1 otherwise if x<'contents of A2' then i2=0 ... if x='contents of A1000' then i1000=1 otherwise if x<'contents of A1000' then i 1000=0 I am completely lost as to how to do this. Any help would be greatly appreciated. Thanks, Josh -- jspizman ------------------------------------------------------------------------ jspizman's Profile: http://www.excelforum.com/member.php...o&userid=30694 View this thread: http://www.excelforum.com/showthread...hreadid=570072 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This assumes that the "if" is text and not a formula. In cell B1 enter:
="if x= " & A1 & " then i1 = 1 otherwise if x<" & A1 & " then i1= 0" -- Gary's Student "jspizman" wrote: Hello, I have 1000 ID numbers and I want to reference those ID numbers in a line of text. Basically, I have 1000 lines of text I need to write and want to use excel to do it. What I want to do is something like this: if x= 'contents of A1' then i1 = 1 otherwise if x<'contents of A1' then i1= 0 if x= 'contents of A2' then i2 = 1 otherwise if x<'contents of A2' then i2=0 ... if x='contents of A1000' then i1000=1 otherwise if x<'contents of A1000' then i 1000=0 I am completely lost as to how to do this. Any help would be greatly appreciated. Thanks, Josh -- jspizman ------------------------------------------------------------------------ jspizman's Profile: http://www.excelforum.com/member.php...o&userid=30694 View this thread: http://www.excelforum.com/showthread...hreadid=570072 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
reference cell from wordart text box | Excel Discussion (Misc queries) | |||
How can I insert a line feed in the text in an EXCEL cell? | Excel Discussion (Misc queries) | |||
Cell only shows link in text, not contents of reference cell | New Users to Excel | |||
A 2 line text showing up in the Cell in Excel prints in 1 line | Excel Discussion (Misc queries) |