Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Avram Berman
 
Posts: n/a
Default Simple Function Help ~ Please

If A2 is found in Column G then insert the value of D2 into J2

e.g.,

If A2 is found at G50, then insert the value of D50 into J50

where
A = Address1 and G = Address 1 and D = Zip and J = Zip copied from D

Thank you.



  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
in J2 enter
=IF($A$2=G2,D2,"")
and copy down

--
Regards
Frank Kabel
Frankfurt, Germany

"Avram Berman" schrieb im Newsbeitrag
...
If A2 is found in Column G then insert the value of D2 into J2

e.g.,

If A2 is found at G50, then insert the value of D50 into J50

where
A = Address1 and G = Address 1 and D = Zip and J = Zip copied from D

Thank you.




  #3   Report Post  
Avram Berman
 
Posts: n/a
Default

Not that simple :-)

The value in in Column A2 has to be searched for a match in Column G
Once a match was found, e.g, A2 matched with G50, then the value in
D50 would be copied to J50

This process would repeat it self

A3 would be searched and matched to a value in Column G and so on.




Not that simple :-)

Hi
in J2 enter
=IF($A$2=G2,D2,"")
and copy down


If A2 is found in Column G then insert the value of D2 into J2

e.g.,

If A2 is found at G50, then insert the value of D50 into J50

where
A = Address1 and G = Address 1 and D = Zip and J = Zip copied from D
  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
if I understood you correctly you need VBA to loop through your A2:An
range and change column J accordingly. ut of course you could try the
following in J2:
=IF(COUNTIF($A$2:$A$10,G2),D2,"")
and copy this down

--
Regards
Frank Kabel
Frankfurt, Germany

"Avram Berman" schrieb im
Newsbeitrag ...
Not that simple :-)

The value in in Column A2 has to be searched for a match in Column G
Once a match was found, e.g, A2 matched with G50, then the value in
D50 would be copied to J50

This process would repeat it self

A3 would be searched and matched to a value in Column G and so on.




Not that simple :-)

Hi
in J2 enter
=IF($A$2=G2,D2,"")
and copy down


If A2 is found in Column G then insert the value of D2 into J2

e.g.,

If A2 is found at G50, then insert the value of D50 into J50

where
A = Address1 and G = Address 1 and D = Zip and J = Zip copied from D


  #5   Report Post  
Avram Berman
 
Posts: n/a
Default

More like this:

=IF(ISNA(VLOOKUP(A2,G:G,4,FALSE)),"No","Yes")

If for example A2 was found at G50, the I want the value
of D50 to be written at J2.





On Fri, 19 Nov 2004 22:41:59 +0100, "Frank Kabel"
wrote:

Hi
if I understood you correctly you need VBA to loop through your A2:An
range and change column J accordingly. ut of course you could try the
following in J2:
=IF(COUNTIF($A$2:$A$10,G2),D2,"")
and copy this down




  #6   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
you have to decide:
1. Option: "A2 matched with G50, then the value in D50 would be copied
to J50"
2. Option: "A2 was found at G50, the I want the value of D50 to be
written at J2"

So my previous formula would work for option 2. For option one use in
J2:
=IF(COUNTIF($G$1:$G$100,A2),INDEX($J$1:$J$100,MATC H(A2,$G$1:$G$100,0)),
"")

--
Regards
Frank Kabel
Frankfurt, Germany

"Avram Berman" schrieb im
Newsbeitrag ...
More like this:

=IF(ISNA(VLOOKUP(A2,G:G,4,FALSE)),"No","Yes")

If for example A2 was found at G50, the I want the value
of D50 to be written at J2.





On Fri, 19 Nov 2004 22:41:59 +0100, "Frank Kabel"
wrote:

Hi
if I understood you correctly you need VBA to loop through your

A2:An
range and change column J accordingly. ut of course you could try

the
following in J2:
=IF(COUNTIF($A$2:$A$10,G2),D2,"")
and copy this down



  #7   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
should be of course vice-versa: First formula - for option 1
new formula - for option 2

--
Regards
Frank Kabel
Frankfurt, Germany

"Frank Kabel" schrieb im Newsbeitrag
...
Hi
you have to decide:
1. Option: "A2 matched with G50, then the value in D50 would be

copied
to J50"
2. Option: "A2 was found at G50, the I want the value of D50 to be
written at J2"

So my previous formula would work for option 2. For option one use in
J2:

=IF(COUNTIF($G$1:$G$100,A2),INDEX($J$1:$J$100,MATC H(A2,$G$1:$G$100,0)),
"")

--
Regards
Frank Kabel
Frankfurt, Germany

"Avram Berman" schrieb im
Newsbeitrag ...
More like this:

=IF(ISNA(VLOOKUP(A2,G:G,4,FALSE)),"No","Yes")

If for example A2 was found at G50, the I want the value
of D50 to be written at J2.





On Fri, 19 Nov 2004 22:41:59 +0100, "Frank Kabel"
wrote:

Hi
if I understood you correctly you need VBA to loop through your

A2:An
range and change column J accordingly. ut of course you could try

the
following in J2:
=IF(COUNTIF($A$2:$A$10,G2),D2,"")
and copy this down




  #8   Report Post  
Avram Berman
 
Posts: n/a
Default

I made a boo boo, sorry - this is what I wanted, if you could
tweak this formula:

=IF(COUNTIF($A$2:$A$14079,G2),D2,"")

to follow this logic it would be appreciated:

if a2 matches g50 the ni need to write the results of d2 at J50
and so on.



On Fri, 19 Nov 2004 23:00:48 +0100, "Frank Kabel"
wrote:

Hi
should be of course vice-versa: First formula - for option 1
new formula - for option 2


  #9   Report Post  
Avram Berman
 
Posts: n/a
Default

I made a boo boo, sorry - this is what I wanted, if you could
tweak this formula:

=IF(COUNTIF($A$2:$A$14079,G2),D2,"")

to follow this logic it would be appreciated:

if a2 matches g50 the i need to write the results of d2 at J50
and so on.



On Fri, 19 Nov 2004 23:00:48 +0100, "Frank Kabel"
wrote:

Hi
should be of course vice-versa: First formula - for option 1
new formula - for option 2


  #10   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
but what does not work with this formula if you copy it in all rows of
column G. You really have to explain what you mean with 'and so on'

--
Regards
Frank Kabel
Frankfurt, Germany

"Avram Berman" schrieb im
Newsbeitrag ...
I made a boo boo, sorry - this is what I wanted, if you could
tweak this formula:

=IF(COUNTIF($A$2:$A$14079,G2),D2,"")

to follow this logic it would be appreciated:

if a2 matches g50 the i need to write the results of d2 at J50
and so on.



On Fri, 19 Nov 2004 23:00:48 +0100, "Frank Kabel"
wrote:

Hi
should be of course vice-versa: First formula - for option 1
new formula - for option 2



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
Accessing a Function Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 January 1st 05 05:46 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Simple, Monday morning brain function craigwojo Excel Worksheet Functions 1 November 16th 04 03:07 AM
Simple, Monday morning brain function craigwojo Excel Worksheet Functions 2 November 15th 04 01:43 PM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


All times are GMT +1. The time now is 06:51 PM.

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"