How to divide two cells based on match?
up vote
0
down vote
favorite
In a table 1
, I have,
+---+---+----+
| | A | B |
+---+---+----+
| 1 | A | 30 |
| 2 | B | 20 |
| 3 | C | 15 |
+---+---+----+
On table 2
, I have
+---+---+---+----+
| | A | B | C |
+---+---+---+----+
| 1 | A | 2 | 15 |
| 2 | A | 5 | 6 |
| 3 | B | 4 | 5 |
+---+---+---+----+
I want the number in second column to divide the number in table 1
, based on match, and the result in third column.
The number present in the bracket is the result needed. What is the formula that I must apply in third column in table 2
?
Please help me on this.
Thanks in advance
excel
add a comment |
up vote
0
down vote
favorite
In a table 1
, I have,
+---+---+----+
| | A | B |
+---+---+----+
| 1 | A | 30 |
| 2 | B | 20 |
| 3 | C | 15 |
+---+---+----+
On table 2
, I have
+---+---+---+----+
| | A | B | C |
+---+---+---+----+
| 1 | A | 2 | 15 |
| 2 | A | 5 | 6 |
| 3 | B | 4 | 5 |
+---+---+---+----+
I want the number in second column to divide the number in table 1
, based on match, and the result in third column.
The number present in the bracket is the result needed. What is the formula that I must apply in third column in table 2
?
Please help me on this.
Thanks in advance
excel
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In a table 1
, I have,
+---+---+----+
| | A | B |
+---+---+----+
| 1 | A | 30 |
| 2 | B | 20 |
| 3 | C | 15 |
+---+---+----+
On table 2
, I have
+---+---+---+----+
| | A | B | C |
+---+---+---+----+
| 1 | A | 2 | 15 |
| 2 | A | 5 | 6 |
| 3 | B | 4 | 5 |
+---+---+---+----+
I want the number in second column to divide the number in table 1
, based on match, and the result in third column.
The number present in the bracket is the result needed. What is the formula that I must apply in third column in table 2
?
Please help me on this.
Thanks in advance
excel
In a table 1
, I have,
+---+---+----+
| | A | B |
+---+---+----+
| 1 | A | 30 |
| 2 | B | 20 |
| 3 | C | 15 |
+---+---+----+
On table 2
, I have
+---+---+---+----+
| | A | B | C |
+---+---+---+----+
| 1 | A | 2 | 15 |
| 2 | A | 5 | 6 |
| 3 | B | 4 | 5 |
+---+---+---+----+
I want the number in second column to divide the number in table 1
, based on match, and the result in third column.
The number present in the bracket is the result needed. What is the formula that I must apply in third column in table 2
?
Please help me on this.
Thanks in advance
excel
excel
edited 2 days ago
JNevill
30.9k31544
30.9k31544
asked 2 days ago
ashwin
33
33
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago
add a comment |
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
You can use a vlookup()
formula to go get the dividend. (assuming table 1
is on Sheet1
and table 2
in Sheet2
where we are doing this formula):
=VLOOKUP(A1,Sheet1!A:B, 2, FALSE)/Sheet2!B1
add a comment |
up vote
0
down vote
Since you mention table
, with structured references, though it seems you are not applying those here:
=VLOOKUP([@Column1],Table1[#All],2,0)/[@Column2]
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can use a vlookup()
formula to go get the dividend. (assuming table 1
is on Sheet1
and table 2
in Sheet2
where we are doing this formula):
=VLOOKUP(A1,Sheet1!A:B, 2, FALSE)/Sheet2!B1
add a comment |
up vote
0
down vote
You can use a vlookup()
formula to go get the dividend. (assuming table 1
is on Sheet1
and table 2
in Sheet2
where we are doing this formula):
=VLOOKUP(A1,Sheet1!A:B, 2, FALSE)/Sheet2!B1
add a comment |
up vote
0
down vote
up vote
0
down vote
You can use a vlookup()
formula to go get the dividend. (assuming table 1
is on Sheet1
and table 2
in Sheet2
where we are doing this formula):
=VLOOKUP(A1,Sheet1!A:B, 2, FALSE)/Sheet2!B1
You can use a vlookup()
formula to go get the dividend. (assuming table 1
is on Sheet1
and table 2
in Sheet2
where we are doing this formula):
=VLOOKUP(A1,Sheet1!A:B, 2, FALSE)/Sheet2!B1
answered 2 days ago
JNevill
30.9k31544
30.9k31544
add a comment |
add a comment |
up vote
0
down vote
Since you mention table
, with structured references, though it seems you are not applying those here:
=VLOOKUP([@Column1],Table1[#All],2,0)/[@Column2]
add a comment |
up vote
0
down vote
Since you mention table
, with structured references, though it seems you are not applying those here:
=VLOOKUP([@Column1],Table1[#All],2,0)/[@Column2]
add a comment |
up vote
0
down vote
up vote
0
down vote
Since you mention table
, with structured references, though it seems you are not applying those here:
=VLOOKUP([@Column1],Table1[#All],2,0)/[@Column2]
Since you mention table
, with structured references, though it seems you are not applying those here:
=VLOOKUP([@Column1],Table1[#All],2,0)/[@Column2]
answered 2 days ago
pnuts
46.3k76197
46.3k76197
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53342331%2fhow-to-divide-two-cells-based-on-match%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you mean by match? based on column name or based on cell value? when you write A - 2 does that mean cell $A$1 has value of 2? Or has the value "A - 2"?
– siggi_pop
2 days ago
Hi siggi_pop, thanks for connecting. I wanted to distinguish columns through "-" A B C are the entries in column A and the numbers are the entries in Column B. And the match is based on the alphabet.In sheet 2, for A, the factor is 2, so A in sheet 2 matches with A in sheet 1 and returns a value in third column, say 15 (30/2).
– ashwin
2 days ago
Ok so based on your answer 'I wanted to distinguish rows through "-"' would mean that A - 2 is same as $A$2 ( column A, row 2 ) correct ?
– siggi_pop
2 days ago