Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default IF statements

I have a HUGE spreadsheet and want to blank out certain cells based upon a
test to see if other cells are also blank. For example:

A B C
1 .5 3
2 .1 0
3 0
4 .3 1

It is easy enough to place an IF statement in column C to test to see if the
cells in column A are blank, which A3 is in this example. But what I want to
do is to use an IF statement (or something else) to write a blank over the
corresponding cell in column B if the cell in column A is also blank. Any
ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default IF statements

Hi
why not use a filter for this ('Data - Filter')

--
Regards
Frank Kabel
Frankfurt, Germany

"Dr_Ray" schrieb im Newsbeitrag
...
I have a HUGE spreadsheet and want to blank out certain cells based

upon a
test to see if other cells are also blank. For example:

A B C
1 .5 3
2 .1 0
3 0
4 .3 1

It is easy enough to place an IF statement in column C to test to see

if the
cells in column A are blank, which A3 is in this example. But what I

want to
do is to use an IF statement (or something else) to write a blank

over the
corresponding cell in column B if the cell in column A is also blank.

Any
ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default IF statements

One way I would do it (if you're looking to do it without using VBA) is like
this:

for each cell in column C (changing the row number as appropriate):
------------------------
=IF(A1="","",A1)
------------------------
This way if Column A is empty it will leave C blank.

for each cell in column D (changing the row number as appropriate):
--------------------------------
=IF(C1="","",IF(B1="","",B1))
--------------------------------
This way if column C (the new column A) is empty
it leaves column D (the new column B) empty.
if C is not empty but B is, it will leave D empty as well.

Then you simply use the info from columns C and D instead of using columns A
and B.


"Dr_Ray" wrote in message
...
I have a HUGE spreadsheet and want to blank out certain cells based upon a
test to see if other cells are also blank. For example:

A B C
1 .5 3
2 .1 0
3 0
4 .3 1

It is easy enough to place an IF statement in column C to test to see if
the
cells in column A are blank, which A3 is in this example. But what I want
to
do is to use an IF statement (or something else) to write a blank over the
corresponding cell in column B if the cell in column A is also blank. Any
ideas?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default IF statements

Duh. I knew there had to be another way to approach this (without using
VBA...mine is rusty to say the least).

Your approach works. BTW...it looks like one can eliminate the first step
and simply do the test on Column A.

At any rate, thanks for your help.

"CB Hamlyn" wrote:

One way I would do it (if you're looking to do it without using VBA) is like
this:

for each cell in column C (changing the row number as appropriate):
------------------------
=IF(A1="","",A1)
------------------------
This way if Column A is empty it will leave C blank.

for each cell in column D (changing the row number as appropriate):
--------------------------------
=IF(C1="","",IF(B1="","",B1))
--------------------------------
This way if column C (the new column A) is empty
it leaves column D (the new column B) empty.
if C is not empty but B is, it will leave D empty as well.

Then you simply use the info from columns C and D instead of using columns A
and B.


"Dr_Ray" wrote in message
...
I have a HUGE spreadsheet and want to blank out certain cells based upon a
test to see if other cells are also blank. For example:

A B C
1 .5 3
2 .1 0
3 0
4 .3 1

It is easy enough to place an IF statement in column C to test to see if
the
cells in column A are blank, which A3 is in this example. But what I want
to
do is to use an IF statement (or something else) to write a blank over the
corresponding cell in column B if the cell in column A is also blank. Any
ideas?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default IF statements

Your approach works. BTW...it looks like one can eliminate the first step
and simply do the test on Column A.

I included it on the chance you needed to see both columns (or the output of
them anyway) side by side. If not then yes, by all means skip the first
part.

At any rate, thanks for your help.

You're very welcome.

CB Hamlyn


"CB Hamlyn" wrote:

One way I would do it (if you're looking to do it without using VBA) is
like
this:

for each cell in column C (changing the row number as appropriate):
------------------------
=IF(A1="","",A1)
------------------------
This way if Column A is empty it will leave C blank.

for each cell in column D (changing the row number as appropriate):
--------------------------------
=IF(C1="","",IF(B1="","",B1))
--------------------------------
This way if column C (the new column A) is empty
it leaves column D (the new column B) empty.
if C is not empty but B is, it will leave D empty as well.

Then you simply use the info from columns C and D instead of using
columns A
and B.


"Dr_Ray" wrote in message
...
I have a HUGE spreadsheet and want to blank out certain cells based upon
a
test to see if other cells are also blank. For example:

A B C
1 .5 3
2 .1 0
3 0
4 .3 1

It is easy enough to place an IF statement in column C to test to see
if
the
cells in column A are blank, which A3 is in this example. But what I
want
to
do is to use an IF statement (or something else) to write a blank over
the
corresponding cell in column B if the cell in column A is also blank.
Any
ideas?






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 statements Bob Excel Worksheet Functions 1 February 20th 08 01:18 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
IF and MAX statements bob Excel Worksheet Functions 5 April 2nd 06 04:33 AM
If statements kieffer Excel Worksheet Functions 8 February 22nd 06 03:19 PM
If statements paule1982 Excel Discussion (Misc queries) 4 February 18th 06 05:09 PM


All times are GMT +1. The time now is 12:38 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"