Turn on suggestions

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

Showing results for

- 379K Members
- 2,938 Online
- 392K Conversations

- Home
- :
- Excel
- :
- General Discussion
- :
- 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.

Showing results for

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

- Home
- :
- Excel
- :
- General Discussion
- :
- 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

- 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

How to Prevent Teams from Auto-Launch

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

1 Likes

14 Replies

Early preview of Microsoft Edge group policies

Sean Lyndersay
in
Discussions
on
06-14-2019
13.7K
Views

20 Likes

63 Replies

*Updated* Syncing in Microsoft Edge Preview Channels

Elliot Kirk
in
Articles
on
05-01-2019
22.9K
Views

20 Likes

151 Replies

Microsoft Office 2019 Now Available – Comparing 2019 🆚 2016 🆚 365, New Features in Access & Excel

Dan Moorehead | PowerAccess
in
Access
on
09-24-2018
138K
Views

4 Likes

13 Replies

This form can't be distributed as it is asking for personal or sensitive information

NZLaSalle
in
Microsoft Forms
on
07-19-2019
3,343
Views

4 Likes

41 Replies

Teams Calling - Dial pad missing

Chris Cooper
in
Microsoft Teams
on
03-26-2019
18.7K
Views

0 Likes

71 Replies

Share

Popular

Learning Resources

Programs

Values

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