Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default If statement that returns data in a cell if False.

I have an If statement that reads '=IF(B2="Y","","=B1").
This function is repeated many times, referencing a different cell each time
in the spreadsheet.
At the moment the text '=B1' (or equivalent) is entered into the cell if the
function returns False.
How do I alter the If statement so that the information in cell B1 (not the
reference point) is inserted each time the function returns False.
--
Thank you,

Colin.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default If statement that returns data in a cell if False.

The reason why you are getting =B1 is that you have enclosed that in quotes,
so that is the text string you've asked for. If you want the value from B1,
then your formula should be =IF(B2="Y","",B1).
--
David Biddulph

"Colin" wrote in message
...
I have an If statement that reads '=IF(B2="Y","","=B1").
This function is repeated many times, referencing a different cell each
time
in the spreadsheet.
At the moment the text '=B1' (or equivalent) is entered into the cell if
the
function returns False.
How do I alter the If statement so that the information in cell B1 (not
the
reference point) is inserted each time the function returns False.
--
Thank you,

Colin.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default If statement that returns data in a cell if False.

I had tried without the quotes, however I had left in the equal sign.
Thank you for your swift reply.
--

Colin.


"David Biddulph" wrote:

The reason why you are getting =B1 is that you have enclosed that in quotes,
so that is the text string you've asked for. If you want the value from B1,
then your formula should be =IF(B2="Y","",B1).
--
David Biddulph

"Colin" wrote in message
...
I have an If statement that reads '=IF(B2="Y","","=B1").
This function is repeated many times, referencing a different cell each
time
in the spreadsheet.
At the moment the text '=B1' (or equivalent) is entered into the cell if
the
function returns False.
How do I alter the If statement so that the information in cell B1 (not
the
reference point) is inserted each time the function returns False.
--
Thank you,

Colin.




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
If Statement returns true when false? Eric Excel Discussion (Misc queries) 3 September 11th 06 01:58 PM
How to do nothing if @IF returns FALSE? PMorrisDuke Excel Worksheet Functions 3 April 11th 06 04:39 PM
keep cell blank if IF statement is False ruthslaughter New Users to Excel 5 November 25th 05 01:30 PM
keep cell blank when false in IF statement ruthslaughter Excel Discussion (Misc queries) 2 November 22nd 05 06:15 PM
IF Function returns False instead of 0 BEEJAY Excel Worksheet Functions 2 June 23rd 05 04:23 PM


All times are GMT +1. The time now is 02:25 AM.

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"