LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default Lookup vertically to next cell with data

I've got a huge array of data (approx 13,000 rows X 15 columns). I'm looking
for a formula to replace the blank cells as I don't want to copy-paste
13,000 rows. I need the formula to look up the column to find the ID number.

The first column of data contains patient ID numbers. However, there
are blank cells beneath each unique patient ID number until another
unique ID is used. Cells that are adjacent to the blank
ID cells contain data. Is there a formula I can use in Column A to fill in
the blank cells (or lookup and copy the ID number)? Is there VBA code that I
can use?

Here's my data set with the blank cells. My desired result is below.
(col A) (col B)
ID Result
101 Happy
blank Sad
blank Happy
102 Sad
blank Sad
blank Happy
blank Happy
blank Happy

Here's my desired result which replaces the blank cells with the appropriate
ID number.
(col A) (col B)
ID Result
101 Happy
101 Sad
101 Happy
102 Sad
102 Sad
102 Happy
102 Happy
102 Happy

Thanks in advance for your help.

-Scott


 
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
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Splitting Data in a Cell Newbie1092 Excel Worksheet Functions 3 May 10th 05 05:48 PM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 08:57 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"