Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default map column a to column b

hi,
I am a newbie. how could map two columns in excel.

For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.

thanks,
r.kalaivanan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default map column a to column b

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A:A" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Offset(0, 1).Value = .Value
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"kalai" wrote in message
ups.com...
hi,
I am a newbie. how could map two columns in excel.

For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.

thanks,
r.kalaivanan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default map column a to column b

In B1 put the formula =A1
If you want B1 to stay blank until A1 is filled in, then use
=IF(A1="","",A1)

Copy down as far as you like.
--
David Biddulph

"kalai" wrote in message
ups.com...
hi,
I am a newbie. how could map two columns in excel.

For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.

thanks,
r.kalaivanan



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default map column a to column b

On Aug 16, 4:55 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
In B1 put the formula =A1
If you want B1 to stay blank until A1 is filled in, then use
=IF(A1="","",A1)

Copy down as far as you like.
--
David Biddulph

"kalai" wrote in message

ups.com...



hi,
I am a newbie. how could map two columns in excel.


For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.


thanks,
r.kalaivanan- Hide quoted text -


- Show quoted text -


hi david,
thanks for ur reply. actually u want me copy the formula in each and
every row upto the one i needed, which is specific to one particular
row and column. but what i wanted is a single formula or that need to
written once for whole of the two columns. the data entry may goes
upto nth row which i did not know. so whenever i enter a value in a
row say a225, the corresponding value should be reflected in b225.
Is there any workaround for this.

thanks,
r.kalaivanan

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default map column a to column b

A number of ways:

Select cell B1. Edit/ Copy (or CTRL-C). Select cells B2 to B225. Edit/
Paste (or CTRL-V).
or
Hover the cursor over the bottom right-hand corner of cell B1 so that the
pointer turns to a + sign. Click, & while holding the mouse button down
drag that + sign down across cells B2 to B225.

You did say you were a newbie, so perhaps you need some Excel basics
training, either a book such as "Excel for Dummies" or a basic course
(either on-line or elsewhere)? If you're after a recommendation for such
instruction, you might try the microsoft.public.excel.newusers newsgroup.
--
David Biddulph

"kalai" wrote in message
oups.com...
thanks for ur reply. actually u want me copy the formula in each and
every row upto the one i needed, which is specific to one particular
row and column. but what i wanted is a single formula or that need to
written once for whole of the two columns. the data entry may goes
upto nth row which i did not know. so whenever i enter a value in a
row say a225, the corresponding value should be reflected in b225.
Is there any workaround for this.


On Aug 16, 4:55 pm, "David Biddulph" <groups [at] biddulph.org.uk

wrote:
In B1 put the formula =A1
If you want B1 to stay blank until A1 is filled in, then use
=IF(A1="","",A1)

Copy down as far as you like.


"kalai" wrote in message

ups.com...
I am a newbie. how could map two columns in excel.


For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default map column a to column b

Do you mean ..

in B1:

=A1

???

"kalai" wrote:

hi,
I am a newbie. how could map two columns in excel.

For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.

thanks,
r.kalaivanan


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default map column a to column b

Use the code Bob Phillips supplied: it does exactly what you want.

"kalai" wrote:

On Aug 16, 4:55 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
In B1 put the formula =A1
If you want B1 to stay blank until A1 is filled in, then use
=IF(A1="","",A1)

Copy down as far as you like.
--
David Biddulph

"kalai" wrote in message

ups.com...



hi,
I am a newbie. how could map two columns in excel.


For example column a to column b. If i enter any value in any row of
column a that should be reflected in corresponding row of column b.
Please help me in this regard.


thanks,
r.kalaivanan- Hide quoted text -


- Show quoted text -


hi david,
thanks for ur reply. actually u want me copy the formula in each and
every row upto the one i needed, which is specific to one particular
row and column. but what i wanted is a single formula or that need to
written once for whole of the two columns. the data entry may goes
upto nth row which i did not know. so whenever i enter a value in a
row say a225, the corresponding value should be reflected in b225.
Is there any workaround for this.

thanks,
r.kalaivanan


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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
formula : =(column A)+(column B)-(column C). Why won't it work? Kristin Drover Excel Discussion (Misc queries) 3 October 18th 06 08:48 PM
Divide Column A by Column B multiply Column C Stumped Excel Worksheet Functions 3 December 28th 05 05:51 AM
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM


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