Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Za1 Za1 is offline
Junior Member
 
Posts: 4
Default how do I search thru the values in my column and replace with nessesary values

hi

my request would be abit confusing so forgive me if i dont describe it properly,
currently i have a few funds i need to sort and im getting raw data from the dealer so the names in bold are the name of the compnay and the ones unbold are the products. i have abrevations for the names of the company which is is column B and i use a vlookup to extract them from my own database the thing i wanna know is whether isit possible to change the #n/A values in column B to reflect which product is from which company. like cell b3 to change its value automatically till the it hits a new value for example cell b5. eg b2 AGB, b3 detects #N/A changes to AGB, b4detects #N/A changes to AGB, b5 detects AD changes to AD, b6 to detect #n/a change to AD and so on.

im sorry if this is a confusing post hope to get some help soon
Attached Files
File Type: zip New Microsoft Excel Worksheet.zip (7.7 KB, 53 views)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default how do I search thru the values in my column and replace withnessesary values

On Wednesday, September 26, 2012 4:10:01 AM UTC-5, Za1 wrote:
hi



my request would be abit confusing so forgive me if i dont describe it

properly,

currently i have a few funds i need to sort and im getting raw data from

the dealer so the names in bold are the name of the compnay and the ones

unbold are the products. i have abrevations for the names of the company

which is is column B and i use a vlookup to extract them from my own

database the thing i wanna know is whether isit possible to change the

#n/A values in column B to reflect which product is from which company.

like cell b3 to change its value automatically till the it hits a new

value for example cell b5. eg b2 AGB, b3 detects #N/A changes to AGB,

b4detects #N/A changes to AGB, b5 detects AD changes to AD, b6 to detect

#n/a change to AD and so on.



im sorry if this is a confusing post hope to get some help soon





+-------------------------------------------------------------------+

|Filename: New Microsoft Excel Worksheet.zip |

|Download: http://www.excelbanter.com/attachment.php?attachmentid=600|

+-------------------------------------------------------------------+







--

Za1


Save as .xls or .xlsM and use this macro

Sub ChangeNA_SAS()
Dim lr As Long
Dim c As Range
lr = Cells(Rows.Count, 1).End(xlUp).Row
For Each c In Range("b2:b" & lr)
If IsError(c) Then c.Value = c.Offset(-1)
Next c
End Sub

  #3   Report Post  
Za1 Za1 is offline
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Don Guillett[_2_] View Post
On Wednesday, September 26, 2012 4:10:01 AM UTC-5, Za1 wrote:
hi



my request would be abit confusing so forgive me if i dont describe it

properly,

currently i have a few funds i need to sort and im getting raw data from

the dealer so the names in bold are the name of the compnay and the ones

unbold are the products. i have abrevations for the names of the company

which is is column B and i use a vlookup to extract them from my own

database the thing i wanna know is whether isit possible to change the

#n/A values in column B to reflect which product is from which company.

like cell b3 to change its value automatically till the it hits a new

value for example cell b5. eg b2 AGB, b3 detects #N/A changes to AGB,

b4detects #N/A changes to AGB, b5 detects AD changes to AD, b6 to detect

#n/a change to AD and so on.



im sorry if this is a confusing post hope to get some help soon





+-------------------------------------------------------------------+

|Filename: New Microsoft Excel Worksheet.zip |

|Download: http://www.excelbanter.com/attachment.php?attachmentid=600|

+-------------------------------------------------------------------+







--

Za1


Save as .xls or .xlsM and use this macro

Sub ChangeNA_SAS()
Dim lr As Long
Dim c As Range
lr = Cells(Rows.Count, 1).End(xlUp).Row
For Each c In Range("b2:b" & lr)
If IsError(c) Then c.Value = c.Offset(-1)
Next c
End Sub
thankyou so much it worked
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
Search and replace multiple values Rachel D Excel Programming 1 April 7th 10 04:02 PM
Control search/replace dialog startup values pnp Excel Programming 7 July 19th 07 11:11 AM
Replace all values in a column with values using a mapping from another worksheet [email protected] Excel Programming 6 August 18th 06 03:12 PM
search for one column values in another col ? pm Excel Programming 1 August 19th 04 06:55 AM
How do I search thr'o column and put unique values in differnt sheet and sum corresponding values in test test Excel Programming 3 September 9th 03 08:53 PM


All times are GMT +1. The time now is 11:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"