#1   Report Post  
Posted to microsoft.public.excel.misc
mjlucas49
 
Posts: n/a
Default Excel If statememnts

I have the following function in an Excel spreadsheet. How can I change it
to delete a row instead of just printing No? I am thinking of how I use the
ALt key and arrows to get to the Edit menu and delte row option.


=IF(A4<A5,"No",IF(AND(B4=B5),"Yes","No"))

Thanks in advance.
Michael Lucas



  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Excel If statememnts

A formula cannot delete rows.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"mjlucas49" wrote in
message
...
I have the following function in an Excel spreadsheet. How can
I change it
to delete a row instead of just printing No? I am thinking of
how I use the
ALt key and arrows to get to the Edit menu and delte row
option.


=IF(A4<A5,"No",IF(AND(B4=B5),"Yes","No"))

Thanks in advance.
Michael Lucas





  #3   Report Post  
Posted to microsoft.public.excel.misc
mjlucas49
 
Posts: n/a
Default Excel If statememnts



"Chip Pearson" wrote:

A formula cannot delete rows.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"mjlucas49" wrote in
message
...
I have the following function in an Excel spreadsheet. How can
I change it
to delete a row instead of just printing No? I am thinking of
how I use the
ALt key and arrows to get to the Edit menu and delte row
option.


=IF(A4<A5,"No",IF(AND(B4=B5),"Yes","No"))

Thanks in advance.
Michael Lucas



Could I copy the resultss that my functions provide so they are the values, then sort by the values, and the delete the row I don't need?


Michael


  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Excel If statememnts

Maybe you could just hide the rows you don't want to see.

You could apply Data|Filter|Autofilter to that column. Then use the dropdown
arrow to show the rows you want to see.

If you really wanted to delete the "no's", you could show those rows, then
select those visible cells and edit|Delete|entire row.

Then data|Filter|Show all (to see everything)
or
data|filter|autofilter (to remove the filter arrows)

mjlucas49 wrote:

I have the following function in an Excel spreadsheet. How can I change it
to delete a row instead of just printing No? I am thinking of how I use the
ALt key and arrows to get to the Edit menu and delte row option.

=IF(A4<A5,"No",IF(AND(B4=B5),"Yes","No"))

Thanks in advance.
Michael Lucas


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
mjlucas49
 
Posts: n/a
Default Excel If statememnts



"Dave Peterson" wrote:

Maybe you could just hide the rows you don't want to see.

You could apply Data|Filter|Autofilter to that column. Then use the dropdown
arrow to show the rows you want to see.

If you really wanted to delete the "no's", you could show those rows, then
select those visible cells and edit|Delete|entire row.

Then data|Filter|Show all (to see everything)
or
data|filter|autofilter (to remove the filter arrows)

mjlucas49 wrote:

I have the following function in an Excel spreadsheet. How can I change it
to delete a row instead of just printing No? I am thinking of how I use the
ALt key and arrows to get to the Edit menu and delte row option.

=IF(A4<A5,"No",IF(AND(B4=B5),"Yes","No"))

Thanks in advance.
Michael Lucas


--

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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 03:12 PM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 04:58 PM
Need suggestions for some uses of Ms Excel Bible John Excel Discussion (Misc queries) 1 February 27th 06 06:30 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 03:01 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 09:07 PM


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