Daniel Thanks for the reply. But I couldn't solve my problem. I created a macro from your code and rum it. Then there Is a error message coming as "*Object variable or with block variable not set ".* How can I overcome this problem. Could you please help me further.
Regards, Dilan On Mon, Mar 21, 2011 at 2:17 PM, Daniel <dcolarde...@free.fr> wrote: > Try : > > > > Sub test2() > > Dim c As Range, inRow As Long > > For Each c In Range([A4], Cells(Rows.Count, > 1).End(xlUp)).SpecialCells(xlCellTypeConstants) > > If Cells(c.Row, 7).Value = "" Then > > inRow = Range(Cells(c.Row, 7), Cells(c.Row + 1000, 7)).Find("*", , > xlValues).Row > > Cells(c.Row, 7).Formula = Cells(inRow, 7).Formula > > Cells(inRow, 7) = "" > > End If > > Next c > > End Sub > > > > Regards. > > > > Daniel > > > > *De :* excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] > *De la part de* Dilan De Silva > *Envoyé :* dimanche 20 mars 2011 08:41 > *À :* excel-macros@googlegroups.com > *Objet :* $$Excel-Macros$$ Excel formula for a BOQ > > > > Dear friends, > > > > Please refer the attached excel sheet. > > > > I want to get the Item nr and relavent percentage in to a one row for each > item. > > > > For example, > > Item A and relavent percentage (105%) is in one row, but Item B and > percentage(150%) not in a on row. Then, I want to get the 150% to above row. > > > > How can I do this by using a formula or macro? > > > > Thanks in advance > > regards, > > Dilan > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel