Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Metallo
 
Posts: n/a
Default Can you help to find the right formula?

Hi,

I published this message on the Programming forum, but I'm not sure if the
solution may come out from here as well, so...

I have two WS, say WS1 and WS2

WS1

A B C D E

1 GARY MIK JOHN 1000 700
2 GARY SANDY BRIAN 500 300

The data in column D & E are values that a user inputs.
When the user inputs D1, I want 1000 to go to WS2 where at row level the
same 3 constants can be found.
So, 1000 should go where in WS2 there are rows with the three words GARY,
MIK, JOHN.

WS2

C D E F G

1 ANDY ELLEN KEVIN
2 GARY SANDY BRIAN
3 GARY MIK JOHN 1000

In this way any value that the user inputs in WS1 D or E columns will go
automatically into WS2 where the three combination of values are found at
row
level.
Please, bear in mind that although the WS1 columns D and E and WS2 columns F
and G have respectively the same heading name.
Once again, if user enters in WS1 the value for E2, then 300 should
automatically end up into WS2 G2.

I dont't know if this can be done programmatically or by a particular fx
function in Excel, but I'm sure you can help.

Thank you
Metallo


  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

On WS1 in an empty column (say H) use =A1&B1&C1 and copy down the column as
needed
On WS2 in H1 use =MATCH(A1&B1&C1,ws1!$H$1:$H$20,FALSE) and copy
Then in D1 use =IF(ISNA(H1),"",INDEX(ws1!$D$1:$D$20,ws2!H1))

best wishes
Bernard


"Metallo" wrote in message
...
Hi,

I published this message on the Programming forum, but I'm not sure if the
solution may come out from here as well, so...

I have two WS, say WS1 and WS2

WS1

A B C D E

1 GARY MIK JOHN 1000 700
2 GARY SANDY BRIAN 500 300

The data in column D & E are values that a user inputs.
When the user inputs D1, I want 1000 to go to WS2 where at row level the
same 3 constants can be found.
So, 1000 should go where in WS2 there are rows with the three words GARY,
MIK, JOHN.

WS2

C D E F G

1 ANDY ELLEN KEVIN
2 GARY SANDY BRIAN
3 GARY MIK JOHN 1000

In this way any value that the user inputs in WS1 D or E columns will go
automatically into WS2 where the three combination of values are found at
row
level.
Please, bear in mind that although the WS1 columns D and E and WS2 columns
F
and G have respectively the same heading name.
Once again, if user enters in WS1 the value for E2, then 300 should
automatically end up into WS2 G2.

I dont't know if this can be done programmatically or by a particular fx
function in Excel, but I'm sure you can help.

Thank you
Metallo



  #3   Report Post  
Metallo
 
Posts: n/a
Default

Bernard,

Thank for your reply.
Could you please be more specific, I cannot have your suggestion to work.

Every row has got 3 values that make the row unique, in this case any of the
3 names combination.

I can understand what you do in WS1.

I cannot understand what you suggest for WS2, maybe you can explain?

Thank you
Metallo

"Bernard Liengme" wrote in message
...
On WS1 in an empty column (say H) use =A1&B1&C1 and copy down the column
as needed
On WS2 in H1 use =MATCH(A1&B1&C1,ws1!$H$1:$H$20,FALSE) and copy
Then in D1 use =IF(ISNA(H1),"",INDEX(ws1!$D$1:$D$20,ws2!H1))

best wishes
Bernard


"Metallo" wrote in message
...
Hi,

I published this message on the Programming forum, but I'm not sure if
the solution may come out from here as well, so...

I have two WS, say WS1 and WS2

WS1

A B C D E

1 GARY MIK JOHN 1000 700
2 GARY SANDY BRIAN 500 300

The data in column D & E are values that a user inputs.
When the user inputs D1, I want 1000 to go to WS2 where at row level the
same 3 constants can be found.
So, 1000 should go where in WS2 there are rows with the three words GARY,
MIK, JOHN.

WS2

C D E F G

1 ANDY ELLEN KEVIN
2 GARY SANDY BRIAN
3 GARY MIK JOHN 1000

In this way any value that the user inputs in WS1 D or E columns will go
automatically into WS2 where the three combination of values are found at
row
level.
Please, bear in mind that although the WS1 columns D and E and WS2
columns F
and G have respectively the same heading name.
Once again, if user enters in WS1 the value for E2, then 300 should
automatically end up into WS2 G2.

I dont't know if this can be done programmatically or by a particular fx
function in Excel, but I'm sure you can help.

Thank you
Metallo





  #4   Report Post  
Metallo
 
Posts: n/a
Default

Hi,

I forgot to mention something important, the values to match are not
contiguous as erroneously shown below.
Therefore, the table is like this:

WS1

A B C D E
F

1 GARY X MIK JOHN 1000 700
2 GARY Y SANDY BRIAN 500 300

Only the combination of A, C and D can identify a unique row.
Also to remember that the columns in WS2 are not the same as in WS1, it's a
different format.

Thanks
Metallo

"Metallo" wrote in message
...
Bernard,

Thank for your reply.
Could you please be more specific, I cannot have your suggestion to work.

Every row has got 3 values that make the row unique, in this case any of
the 3 names combination.

I can understand what you do in WS1.

I cannot understand what you suggest for WS2, maybe you can explain?

Thank you
Metallo

"Bernard Liengme" wrote in message
...
On WS1 in an empty column (say H) use =A1&B1&C1 and copy down the column
as needed
On WS2 in H1 use =MATCH(A1&B1&C1,ws1!$H$1:$H$20,FALSE) and copy
Then in D1 use =IF(ISNA(H1),"",INDEX(ws1!$D$1:$D$20,ws2!H1))

best wishes
Bernard


"Metallo" wrote in message
...
Hi,

I published this message on the Programming forum, but I'm not sure if
the solution may come out from here as well, so...

I have two WS, say WS1 and WS2

WS1

A B C D E

1 GARY MIK JOHN 1000 700
2 GARY SANDY BRIAN 500 300

The data in column D & E are values that a user inputs.
When the user inputs D1, I want 1000 to go to WS2 where at row level the
same 3 constants can be found.
So, 1000 should go where in WS2 there are rows with the three words
GARY,
MIK, JOHN.

WS2

C D E F G

1 ANDY ELLEN KEVIN
2 GARY SANDY BRIAN
3 GARY MIK JOHN 1000

In this way any value that the user inputs in WS1 D or E columns will go
automatically into WS2 where the three combination of values are found
at row
level.
Please, bear in mind that although the WS1 columns D and E and WS2
columns F
and G have respectively the same heading name.
Once again, if user enters in WS1 the value for E2, then 300 should
automatically end up into WS2 G2.

I dont't know if this can be done programmatically or by a particular fx
function in Excel, but I'm sure you can help.

Thank you
Metallo







  #5   Report Post  
Metallo
 
Posts: n/a
Default

Hi,

Can anobody help?

Metallo

"Bernard Liengme" wrote:

On WS1 in an empty column (say H) use =A1&B1&C1 and copy down the column as
needed
On WS2 in H1 use =MATCH(A1&B1&C1,ws1!$H$1:$H$20,FALSE) and copy
Then in D1 use =IF(ISNA(H1),"",INDEX(ws1!$D$1:$D$20,ws2!H1))

best wishes
Bernard


"Metallo" wrote in message
...
Hi,

I published this message on the Programming forum, but I'm not sure if the
solution may come out from here as well, so...

I have two WS, say WS1 and WS2

WS1

A B C D E

1 GARY MIK JOHN 1000 700
2 GARY SANDY BRIAN 500 300

The data in column D & E are values that a user inputs.
When the user inputs D1, I want 1000 to go to WS2 where at row level the
same 3 constants can be found.
So, 1000 should go where in WS2 there are rows with the three words GARY,
MIK, JOHN.

WS2

C D E F G

1 ANDY ELLEN KEVIN
2 GARY SANDY BRIAN
3 GARY MIK JOHN 1000

In this way any value that the user inputs in WS1 D or E columns will go
automatically into WS2 where the three combination of values are found at
row
level.
Please, bear in mind that although the WS1 columns D and E and WS2 columns
F
and G have respectively the same heading name.
Once again, if user enters in WS1 the value for E2, then 300 should
automatically end up into WS2 G2.

I dont't know if this can be done programmatically or by a particular fx
function in Excel, but I'm sure you can help.

Thank you
Metallo




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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
I there an easy way to find out if any formula reference a cell? Marc New Users to Excel 1 December 6th 04 10:41 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


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