Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a spreadsheet with a number of blank cells in a column, I want to fill
these cells with a another cell value from a different column, the value will need to change every time a non blank cell is reached, as will the data to be put in to the next section of blank cells. I can send a small sample of data if required. Regards |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
sub Blank_Cells_with_Values()
dim CELL range("A1").select set a=selection range(a,a.specialcells(xllastcell)).select for each CELL in selection if CELL.Text="" then CELL.value=cell.offset(0,3).value end if next end sub cell.offset(0,3).value is the third colmn (on the same row) from the cell being evaluated. So the blank CELL will have that value. http://www.geocities.com/excelmarksway - -Mark "Rugby Al" wrote: I have a spreadsheet with a number of blank cells in a column, I want to fill these cells with a another cell value from a different column, the value will need to change every time a non blank cell is reached, as will the data to be put in to the next section of blank cells. I can send a small sample of data if required. Regards |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the info Mark, but still very confused, I could send a sample of
the data if it would help Regards "exceluserforeman" wrote: sub Blank_Cells_with_Values() dim CELL range("A1").select set a=selection range(a,a.specialcells(xllastcell)).select for each CELL in selection if CELL.Text="" then CELL.value=cell.offset(0,3).value end if next end sub cell.offset(0,3).value is the third colmn (on the same row) from the cell being evaluated. So the blank CELL will have that value. http://www.geocities.com/excelmarksway - -Mark "Rugby Al" wrote: I have a spreadsheet with a number of blank cells in a column, I want to fill these cells with a another cell value from a different column, the value will need to change every time a non blank cell is reached, as will the data to be put in to the next section of blank cells. I can send a small sample of data if required. Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting Blank Cells Wholesale? | Excel Discussion (Misc queries) | |||
How can I replace a range of blank cells with a 0 | Excel Discussion (Misc queries) | |||
CONCATENATE problem with blank cells | Excel Discussion (Misc queries) | |||
Copy down - special to fill only the blank cells | Excel Discussion (Misc queries) | |||
Non Blank - Blank Cells???? | Excel Discussion (Misc queries) |