In Excel find the cells above a cell containing data

I have a column which contains some numbers but not in every cell. I want to identify the 2 cells directly above the cells containing data.
RTsalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StephenJRCommented:
What do you mean identify? The two cells above every cell or one cell?
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Can you post a sample of your sheet and how you want it to look? Do you want to calculate with the '2 cells above' values?
0
RTsalAuthor Commented:
I want to put something in the cells so I can sort/filter the column to show only the rows that have data in that column and the 2 cells directly above the cells with data
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

StephenJRCommented:
So why not do as gerwinjansen has suggested?
0
Gerwin Jansen, EE MVETopic Advisor Commented:
>> so I can sort/filter the column to show only the rows that have data in that column
When you filter on the column for rows that have values you will automatically get the '2 cells above' because you say that they also contain data. Could you please explain in more detail or post a sample. I'm afraid we can't help you otherwise. Thx.
0
RTsalAuthor Commented:
Here is a sample file. I want to add a word to the 2 cells immediately above any cell in the "Missing" column (Col. D) that has a number so that I can search sort and filter on that column and find the rows with the number in it and the 2 cells above them.
missing-sample.xls
0
Rob HensonFinance AnalystCommented:
In your sample, add this formula to D2:

=IF(SUM(D3:D4)=0,"","Show")       Replace word "Show" with required text.

Add an autofilter to the data and then Apply a "Show Blanks" filter to column D. D2 should still be visible.

Select D2 and all cells below. press Ctrl + D to fill down; those cells with values will not be overwritten because they are hidden.

You can now re-apply the filter to show Non Blanks.

Thanks
Rob H
0
Rob HensonFinance AnalystCommented:
Alternatively, you can put this formula in E2 and copy down all rows of data without having to worry about the cells that are already populated:

=IF(AND(D2="",SUM(D3:D4)=0),"","Show")

Then filter on column E for Non Blank.

Thanks
Rob H
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.