• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Remove Blank Rows using formulas

vaishaks89

New Member
Hi there,

Good morning guys.

Today I am here with another query.

I have an excel sheet that has 2 columns in it. Column C holds customer names and Column D holds the revenue details.
Right now, the excel sheet has blank values for both columns (ie: no customer name and no revenue).

I want to remove those rows without using filters or without using macro. I want to use only formula to remove it.
Could u help me out in this? I am attaching the file in this post.

Thanks
Regards
Vaishak S
 

Attachments

Hi and good day Vaishak,

Rows can not be deleted with formula only, you will need a VBA.

But you can sort your numbers (largest to smallest or smallest to largest) with formulas, and then lookup text values.

For example, use this {array formula} in any helper column, say column E5:
=IFERROR(LARGE(IF($A$5:$A$243<>"",$B$5:$B$243),ROW(A1)),0)
{array formula needs to be entered with Ctrl+Shift+Enter, not just enter}

Use this in D5 with just enter:
=IF(E5=0,"",INDEX($A$5:$A$243,MATCH(E5,$B$5:$B$243,0)))

Copy down both till row 243.

or see the attached.

Regards,
 

Attachments

Hi Vaishak,

One more solution

In A4 cell type COMPANY NAME.... Now apply filter and select Sort A to Z now easily you can delete the blank cells
 
if we just remove blank rows only rather than sorting then how i do this
Just remove blank cells only :

Highlight range of cells >> Ctrl+G >> click Special.. >> choose Blanks >> OK >> right click >> select Delete.. >> choose Entire row.. >> OK

Regards
Bosco
 
sir, I don't want to delete blank rows
in your example file i need same result but don't change the order of item
 
Back
Top