Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Need your help. I need to add additional information into cells

I need to add the Equity to each cell in A in addition to what is
already there. so if A1 = hello I want A1=hello Equity.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Need your help. I need to add additional information into cells

Sub Test()
Dim iLastRow As Long
Dim i As Long

iLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To iLastRow
If cell.Value < "" Then
If Not cell.HasFormula Then
cell.Value = cell.Value & " Equity"
End If
End If
Next i

End Sub



--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Shani" wrote in message
oups.com...
I need to add the Equity to each cell in A in addition to what is
already there. so if A1 = hello I want A1=hello Equity.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Need your help. I need to add additional information into cells

thank you very much

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Need your help. I need to add additional information into cells

If cell.Value < "" Then

returns error

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Need your help. I need to add additional information into cells

sorry, should have been

Sub Test()
Dim iLastRow As Long
Dim i As Long

iLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To iLastRow
If Cells(i, "A").Value < "" Then
If Not Cells(i, "A").HasFormula Then
Cells(i, "A").Value = Cells(i, "A").Value & " Equity"
End If
End If
Next i

End Sub


--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Shani" wrote in message
oups.com...
If cell.Value < "" Then

returns error





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Need your help. I need to add additional information into cells

Sub ABC()
Dim rng as Range, cell as Range
set rng = Range(Cells(1,1),cells(rows.count,1).End(xlup))
for each cell in rng
if len(trim(cell.Value)) 0 then
cell.Value = trim(cell.Value) & " Equity"
end if
Next
End sub

Adjust to fit your requirements.

--
Regards,
Tom Ogilvy


"Shani" wrote:

I need to add the Equity to each cell in A in addition to what is
already there. so if A1 = hello I want A1=hello Equity.


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 to get additional information rlo Excel Discussion (Misc queries) 4 September 25th 09 09:21 PM
Excel Chart - additional information added Imabrit Excel Discussion (Misc queries) 0 July 8th 08 09:44 PM
Bringing additional information in with combo box selection JD Excel Worksheet Functions 1 February 24th 05 01:45 AM
Sorting data and retaining additional information with value, not Marie Excel Programming 3 August 27th 04 10:55 PM
Repost for additional information Henry[_6_] Excel Programming 1 May 11th 04 03:35 AM


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