Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- 468K Members
- 10.5K Online
- 566K Conversations

- Home
- :
- Excel
- :
- General Discussion
- :
- Re: How to hide rows if a cell value is above a specified value from a different cell?

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

SOLVED
Home
## How to hide rows if a cell value is above a specified value from a different cell?

- Home
- :
- Excel
- :
- General Discussion
- :
- Re: How to hide rows if a cell value is above a specified value from a different cell?

Conversation Options

- Subscribe to RSS Feed
- Mark Conversation as New
- Mark Conversation as Read
- Pin this Conversation for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 03:25 AM

Hello.

I have a spreadsheet and part of it looks like this (you can see that cell C4 has 60):

Based on the above cell, **C4, **which is 60, it will count from 0 up tp what is in C4, like this, in the A column:

How can I make it so that all rows from 61 (**A74**) are completely hidden, **because the number is above what has been entered in cell C4?**

So, because in the example here, C4 is 60, I want it to then look like this:

As you can see, the data stops at 60, because cell A74 is higher than the value in C4 (I just deleted it all to make this screenshot, I want to do it either through a formula or conditional formatting so it is done automatically).

How can I achieve this?

Many thanks, and I hope this makes sense.

Labels:

7 Replies

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 03:35 AM

If by conditional formatting you may use the rule with formula

=$A1>=$C$4

applied to your entire range and using Fill=White/Font Color=White format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 04:55 AM

Hi @Sergei Baklan. Thanks for replying.

Silly question, but what cell would I put it in? Can it not be done as a formula with an IF, such as:**IF cell value > C4, hide all rows that occur afterwards**

I tried this, but nothing changes.

You can see that I have put your formula, with white formatting, to be applied to my entire dataset.

What am I doing wrong? Many thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 05:08 AM

SolutionLike this, but in formula it shall be relative reference for the row, not absolute. Other words $A14, not $A$14. And it shall be first (most top left) cell of your range

Please see attached, "not visible" region is in grey.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 05:23 AM

Thanks so much @Sergei Baklan. I managed to get it working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 05:26 AM

Good, you are welcome

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-21-2018 06:11 PM - edited 11-21-2018 06:22 PM

Hi again @Sergei Baklan.

How can I make it so that the formulas in my sheet only apply to the visible data and ignores what is now hidden?

Is that possible?

Also, I want to calculate the total amount payable based on the following:

IF repayment number (between 1 and 84) (cells A14 to A97) is less than number of months (cell C4) THEN sum column E (cells E14 to E97), otherwise blank.

My formula looks like this, but it results in an error **(#VALUE!)**, can you help please?

**=IF(A14:A97<$C$4,SUM(E14:E97),"")**

Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-22-2018 05:32 AM

you can not use if to control value of multiple cells. You need to create an array formula. How ever if you want to sum the value of cells depending on a value on another range than you can use SUMIF

=SUMIF($A$14:$A$97,"<"&$C$4, $E$14:$E$97)

basically this formula will check all the cells in A14-A97 range with the value of C4 cell and if the value of the cell is smaller than the value in C4 the value in the correspnding cell in E column will be added to the sum.

Related Conversations

Stable version of Edge insider browser

HotCakeX
in
Discussions
on
10-12-2019
35.9K
Views

7 Likes

35 Replies

How to Prevent Teams from Auto-Launch

chenrylee
in
Microsoft Teams
on
06-27-2019
184K
Views

8 Likes

30 Replies

flashing a white screen while open new tab

Deleted
in
Discussions
on
10-05-2019
31.5K
Views

14 Likes

14 Replies

Security Community Webinars

Valon_Kolica
in
Security, Privacy & Compliance
on
10-22-2019
17.2K
Views

12 Likes

13 Replies

Share

Popular

Learning Resources

Programs

Values

- Contact us
- Privacy & cookies
- Terms of use
- Trademarks
- About our ads
- © Microsoft