Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Currently the function below returns values and I have the seperated by
carrage return, however i wan to have all the values returned seperated into new rows. Is there a way to get the data back seperated into new rows using a subroutine? Function MLookup(LookupRng As Range, OffsetVal As Integer, LookupVal As Range) Dim r As Range For Each r In LookupRng If r.Value = LookupVal.Value Then If Len(MLookup) = 0 Then MLookup = r.Offset(0, OffsetVal - 1).Value Else MLookup = MLookup & vbCrLf & r.Offset(0, OffsetVal - 1).Value End If End If Next r End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i insert blank rows between data that is thousands of rows | Excel Discussion (Misc queries) | |||
Function to insert rows on a change in a cell | Excel Discussion (Misc queries) | |||
Insert rows: Formats & formulas extended to additonal rows | Excel Worksheet Functions | |||
How do I insert blank rows between rows in completed worksheet? | Excel Discussion (Misc queries) | |||
How do i insert of spacer rows between rows in large spreadsheets | Excel Discussion (Misc queries) |