Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ilieski
 
Posts: n/a
Default Fill-in empty cells from SAP report

When extracted to Excel, many reports from SAP do not come in a clean table
format but they appear with blank cells.

For example:
Column A Column B Column C Column D

2200352479 UB Plant 1311
Item1 75,00 EA
Item2 10,75 EA
2500045255 VB Plant 1511
Item1 25,00 EA
Item2 15,75 EA
Item3 10,50 EA

Is there a way to fill-in the blank cells below the numbers in Column A so
afterward I can make a pivot table? This is the desired result:

2200352479 UB Plant 1311
2200352479 Item1 75,00 EA
2200352479 Item2 10,75 EA
2500045255 VB Plant 1511
2500045255 Item1 25,00 EA
2500045255 Item2 15,75 EA
2500045255 Item3 10,50 EA

Many thanks in advance.

---------
Ilieski


  #2   Report Post  
Max
 
Posts: n/a
Default

Try Debra's page at:
http://www.contextures.com/xlDataEntry02.html

Fill Blank Cells
Fill Blank Cells Programmatically
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Ilieski" wrote in message
...
When extracted to Excel, many reports from SAP do not come in a clean

table
format but they appear with blank cells.

For example:
Column A Column B Column C Column D

2200352479 UB Plant 1311
Item1 75,00 EA
Item2 10,75 EA
2500045255 VB Plant 1511
Item1 25,00 EA
Item2 15,75 EA
Item3 10,50 EA

Is there a way to fill-in the blank cells below the numbers in Column A so
afterward I can make a pivot table? This is the desired result:

2200352479 UB Plant 1311
2200352479 Item1 75,00 EA
2200352479 Item2 10,75 EA
2500045255 VB Plant 1511
2500045255 Item1 25,00 EA
2500045255 Item2 15,75 EA
2500045255 Item3 10,50 EA

Many thanks in advance.

---------
Ilieski




  #3   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Fri, 9 Sep 2005 08:46:01 -0700, "Ilieski"
wrote:

When extracted to Excel, many reports from SAP do not come in a clean table
format but they appear with blank cells.

For example:
Column A Column B Column C Column D

2200352479 UB Plant 1311
Item1 75,00 EA
Item2 10,75 EA
2500045255 VB Plant 1511
Item1 25,00 EA
Item2 15,75 EA
Item3 10,50 EA

Is there a way to fill-in the blank cells below the numbers in Column A so
afterward I can make a pivot table? This is the desired result:

2200352479 UB Plant 1311
2200352479 Item1 75,00 EA
2200352479 Item2 10,75 EA
2500045255 VB Plant 1511
2500045255 Item1 25,00 EA
2500045255 Item2 15,75 EA
2500045255 Item3 10,50 EA

Many thanks in advance.


Not with a function, but you could easily do it with a VBA macro.
The technique would be to loop down all the cells in column A, testing
for a gap and filling it with the value recorded in the variable set
when the macro last found an entry in column A.

Assumes the first line of data is in A3

Sub AddIDNumbers()
Dim stID As String
Dim x As Integer

x = Range(Range("B3"), Range("B63356").End(xlUp)).Rows.Count
stID = Range("A3")

For x = 1 To x
If Range("a3").Offset(x - 1, 0) = "" Then
Range("a3").Offset(x - 1, 0) = stID
Else: stID = Range("a3").Offset(x - 1, 0)
End If
Next

End Sub


HTH

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Markus L
 
Posts: n/a
Default


"Ilieski" wrote in message
...
When extracted to Excel, many reports from SAP do not come in a clean

table
format but they appear with blank cells.

For example:
Column A Column B Column C Column D

2200352479 UB Plant 1311
Item1 75,00 EA
Item2 10,75 EA
2500045255 VB Plant 1511
Item1 25,00 EA
Item2 15,75 EA
Item3 10,50 EA

Is there a way to fill-in the blank cells below the numbers in Column A so
afterward I can make a pivot table? This is the desired result:

2200352479 UB Plant 1311
2200352479 Item1 75,00 EA
2200352479 Item2 10,75 EA
2500045255 VB Plant 1511
2500045255 Item1 25,00 EA
2500045255 Item2 15,75 EA
2500045255 Item3 10,50 EA

Many thanks in advance.


http://www.contextures.com/xlDataEntry02.html


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
Display empty cells botany_girl Excel Discussion (Misc queries) 1 July 19th 05 05:51 PM
How can I convert empty strings to empty cells? Shane Excel Discussion (Misc queries) 2 July 19th 05 12:10 PM
fill red cells included in formula - ajit Ajit Munj Excel Discussion (Misc queries) 7 June 21st 05 06:04 PM
HOW TO FORMATE CELLS TO COUNT CELLS WITH A FILL COLOR? Moore New Users to Excel 1 June 15th 05 06:41 PM
Trendlines to ignore empty cells Hoochi Coochi Man Charts and Charting in Excel 7 January 14th 05 01:31 PM


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