ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel If statememnts (https://www.excelbanter.com/excel-discussion-misc-queries/83575-excel-if-statememnts.html)

mjlucas49

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




Chip Pearson

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






mjlucas49

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



Dave Peterson

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

mjlucas49

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com