Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Return last non-blank cell in column

Hi all,

I am trying to write an IF statement that returns all non-blank cells one column over, and if blank, returns the previous non-blank cell in that column. For example:

A B
1 Apple
2 Orange
3 Strawberry
4
5
6 Grapefruit
7 Banana
8
9 Blueberry

I would like column C to return the following:

C
Apple
Orange
Strawberry
Strawberry
Strawberry
Grapefruit
Banana
Banana
Blueberry

Any thoughts?

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Return last non-blank cell in column

On Wed, 27 Mar 2013 21:51:13 +0000, laurawolfgang wrote:


Hi all,

I am trying to write an IF statement that returns all non-blank cells
one column over, and if blank, returns the previous non-blank cell in
that column. For example:

A B
1 Apple
2 Orange
3 Strawberry
4
5
6 Grapefruit
7 Banana
8
9 Blueberry

I would like column C to return the following:

C
Apple
Orange
Strawberry
Strawberry
Strawberry
Grapefruit
Banana
Banana
Blueberry

Any thoughts?

Thanks in advance!


C1: =LOOKUP(2,1/(LEN($B$1:B1)0),$B$1:B1)

Fill down as far as required.
  #3   Report Post  
Junior Member
 
Posts: 2
Default

Perfect. Thanks so much!

Quote:
Originally Posted by Ron Rosenfeld[_2_] View Post
On Wed, 27 Mar 2013 21:51:13 +0000, laurawolfgang wrote:


Hi all,

I am trying to write an IF statement that returns all non-blank cells
one column over, and if blank, returns the previous non-blank cell in
that column. For example:

A B
1 Apple
2 Orange
3 Strawberry
4
5
6 Grapefruit
7 Banana
8
9 Blueberry

I would like column C to return the following:

C
Apple
Orange
Strawberry
Strawberry
Strawberry
Grapefruit
Banana
Banana
Blueberry

Any thoughts?

Thanks in advance!


C1: =LOOKUP(2,1/(LEN($B$1:B1)0),$B$1:B1)

Fill down as far as required.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Return last non-blank cell in column

On Thu, 28 Mar 2013 14:59:22 +0000, laurawolfgang wrote:

Perfect. Thanks so much!


Glad to help. Thanks for the feedback.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return Each Last Non-blank Cell, Value 2 Column Offset, Many GAPS Jim[_14_] Excel Worksheet Functions 1 August 18th 11 06:37 PM
How to return the last non-blank cell in a column that is TEXT VSlaybaugh Excel Worksheet Functions 6 October 8th 08 03:34 PM
Formula to return position of the next Non-blank cell in a column PCLIVE Excel Worksheet Functions 14 July 17th 07 01:11 PM
Return next non-Blank Cell in a Column ? Jakobshavn Isbrae Excel Worksheet Functions 3 May 23rd 07 10:28 PM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM


All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"