Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default workbook/cell reference w/ formula

I'm trying to create a formula to read data from one spreadsheet and return
conditional results. I figured the IF function was best but I cannot get it
to work. I am trying to change data such as 9a-5p, 8a-4p, 6a-2p, to ON, so
the false would return OFF. Here is what I've tried as an actual formula:
=IF('[ANCILLARY
2007.xls]0211-0224'!$E$4=9a-5p,"ON","OFF")

I've tried it with and without the = before 9a-5p, it tries to correct it to
a9-p5.
Any help would be greatly appreciated, I am using Office 2003 Pro.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default workbook/cell reference w/ formula

Hi

Try putting double quotes around the text you are looking for

=IF('[ANCILLARY 2007.xls]0211-0224'!$E$4="9a-5p","ON","OFF")


--
Regards

Roger Govier


"waladd" wrote in message
...
I'm trying to create a formula to read data from one spreadsheet and
return
conditional results. I figured the IF function was best but I cannot
get it
to work. I am trying to change data such as 9a-5p, 8a-4p, 6a-2p, to
ON, so
the false would return OFF. Here is what I've tried as an actual
formula:
=IF('[ANCILLARY
2007.xls]0211-0224'!$E$4=9a-5p,"ON","OFF")

I've tried it with and without the = before 9a-5p, it tries to correct
it to
a9-p5.
Any help would be greatly appreciated, I am using Office 2003 Pro.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default workbook/cell reference w/ formula

If 9a-5p is text that's in the cell, try wrapping it in double quotes:

...$e$4="9a-5p", ...



waladd wrote:

I'm trying to create a formula to read data from one spreadsheet and return
conditional results. I figured the IF function was best but I cannot get it
to work. I am trying to change data such as 9a-5p, 8a-4p, 6a-2p, to ON, so
the false would return OFF. Here is what I've tried as an actual formula:
=IF('[ANCILLARY
2007.xls]0211-0224'!$E$4=9a-5p,"ON","OFF")

I've tried it with and without the = before 9a-5p, it tries to correct it to
a9-p5.
Any help would be greatly appreciated, I am using Office 2003 Pro.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default workbook/cell reference w/ formula

If the contents over in ANCILLARY is actually displayed as 9a-5p then just
enclose that portion of your formula in double-quotes also:
=IF('[ANCILLARY 2007.xls]0211-0224'!$E$4="9a-5p","ON","OFF")


"waladd" wrote:

I'm trying to create a formula to read data from one spreadsheet and return
conditional results. I figured the IF function was best but I cannot get it
to work. I am trying to change data such as 9a-5p, 8a-4p, 6a-2p, to ON, so
the false would return OFF. Here is what I've tried as an actual formula:
=IF('[ANCILLARY
2007.xls]0211-0224'!$E$4=9a-5p,"ON","OFF")

I've tried it with and without the = before 9a-5p, it tries to correct it to
a9-p5.
Any help would be greatly appreciated, I am using Office 2003 Pro.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default workbook/cell reference w/ formula

Thank you guys.

"Dave Peterson" wrote:

If 9a-5p is text that's in the cell, try wrapping it in double quotes:

...$e$4="9a-5p", ...



waladd wrote:

I'm trying to create a formula to read data from one spreadsheet and return
conditional results. I figured the IF function was best but I cannot get it
to work. I am trying to change data such as 9a-5p, 8a-4p, 6a-2p, to ON, so
the false would return OFF. Here is what I've tried as an actual formula:
=IF('[ANCILLARY
2007.xls]0211-0224'!$E$4=9a-5p,"ON","OFF")

I've tried it with and without the = before 9a-5p, it tries to correct it to
a9-p5.
Any help would be greatly appreciated, I am using Office 2003 Pro.


--

Dave Peterson

Reply
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
How to reference a cell in a different workbook using a drop down Mr. C Excel Discussion (Misc queries) 0 January 15th 07 05:31 AM
Use the value of a cell within a reference to another workbook? MR Excel Worksheet Functions 1 August 1st 06 05:41 PM
I have to change a bunch of formula that need to reference a different workbook. Marc Excel Worksheet Functions 5 July 19th 06 02:56 AM
cell reference in another workbook Corben Excel Discussion (Misc queries) 3 April 29th 06 10:03 AM
Excel footer reference to cell in workbook mlh97 Excel Discussion (Misc queries) 1 March 1st 06 04:27 PM


All times are GMT +1. The time now is 08:27 PM.

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

About Us

"It's about Microsoft Excel"