LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default trying to reference a cell in a line of text

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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
reference cell from wordart text box Brian P Bauer Excel Discussion (Misc queries) 0 June 21st 06 03:48 PM
How can I insert a line feed in the text in an EXCEL cell? Antionio Excel Discussion (Misc queries) 2 February 15th 06 10:59 AM
Cell only shows link in text, not contents of reference cell Jay Mac New Users to Excel 4 August 23rd 05 08:36 PM
A 2 line text showing up in the Cell in Excel prints in 1 line Danny Excel Discussion (Misc queries) 6 July 12th 05 08:47 PM


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"