Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PY & Associates
 
Posts: n/a
Default populating empty cell with value from above

Assuming first date is in row 2
last prod# is in row 15005
no blank rows between prod1 to prod#
then try

Sub t()
for i = 3 to 15005
if range("a" & i)="" then
range("a" & i)=range("a" & i-1)
range("b" & i)=range("b" & i-1)
end if
next i
end sub

"shepshedlad"
wrote in message
...

Hi,

I have a large worksheet (15000 rows) which contain orders (simplified
as follows)

DATE[/b] *CUSTOMER* [b]PRODUCT
10/10/05 Joe Bloggs Prod1

Prod2

Prod3
11/10/05 Ian Brown Prod1

Prod2

My question, how do I populate the empty cells within the Customer &
Date column so that all products have their respective customer/date
next to them?

Any help would be very greatfully received.

TIA
Rob


--
shepshedlad
------------------------------------------------------------------------
shepshedlad's Profile:

http://www.excelforum.com/member.php...o&userid=29032
View this thread: http://www.excelforum.com/showthread...hreadid=487595



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
shepshedlad
 
Posts: n/a
Default populating empty cell with value from above


Hi,

I have a large worksheet (15000 rows) which contain orders (simplified
as follows)

DATE[/b] *CUSTOMER* [b]PRODUCT
10/10/05 Joe Bloggs Prod1

Prod2

Prod3
11/10/05 Ian Brown Prod1

Prod2

My question, how do I populate the empty cells within the Customer &
Date column so that all products have their respective customer/date
next to them?

Any help would be very greatfully received.

TIA
Rob


--
shepshedlad
------------------------------------------------------------------------
shepshedlad's Profile: http://www.excelforum.com/member.php...o&userid=29032
View this thread: http://www.excelforum.com/showthread...hreadid=487595

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
shepshedlad
 
Posts: n/a
Default populating empty cell with value from above


sorry but the layout has altered in my last post: there are 3 columns,
1:Date 2:Customer 3:product

column 1 & 2 are empty when customer places more than one product.

Thanks
Rob


--
shepshedlad
------------------------------------------------------------------------
shepshedlad's Profile: http://www.excelforum.com/member.php...o&userid=29032
View this thread: http://www.excelforum.com/showthread...hreadid=487595

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default populating empty cell with value from above

Select entire range then F5SpecialBlanksOK

Type an = sign in active blank cell then point to cell above and hit CTRL +
ENTER.

CopyPaste Special(in place)ValuesOKEsc.


Gord Dibben Excel MVP

On Wed, 23 Nov 2005 06:46:37 -0600, shepshedlad
wrote:


sorry but the layout has altered in my last post: there are 3 columns,
1:Date 2:Customer 3:product

column 1 & 2 are empty when customer places more than one product.

Thanks
Rob


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PY & Associates
 
Posts: n/a
Default populating empty cell with value from above

Interesting

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Select entire range then F5SpecialBlanksOK

Type an = sign in active blank cell then point to cell above and hit

CTRL +
ENTER.

CopyPaste Special(in place)ValuesOKEsc.


Gord Dibben Excel MVP

On Wed, 23 Nov 2005 06:46:37 -0600, shepshedlad
wrote:


sorry but the layout has altered in my last post: there are 3 columns,
1:Date 2:Customer 3:product

column 1 & 2 are empty when customer places more than one product.

Thanks
Rob




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
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Populating a cell when certain cell is clicked Anthony Slater Excel Discussion (Misc queries) 3 April 14th 05 01:55 PM
Textbox.caption to cell if empty, how? WTG Excel Discussion (Misc queries) 2 February 27th 05 04:03 AM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM


All times are GMT +1. The time now is 02:42 AM.

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"