ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need formula help for Excel (https://www.excelbanter.com/excel-discussion-misc-queries/222107-need-formula-help-excel.html)

KenCanuck

Need formula help for Excel
 
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). This result (the formula) will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't get
it to work.

Thanks! - Ken

T. Valko

Need formula help for Excel
 
Try this:

=VLOOKUP(A4,Sheet2!B$2:C$10,2,0)

--
Biff
Microsoft Excel MVP


"KenCanuck" wrote in message
...
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10)
and
supply the corresponding value in (C2-C10). This result (the formula)
will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't
get
it to work.

Thanks! - Ken




xlmate

Need formula help for Excel
 
try this in B4

=VLOOKUP(A4,Sheet2!B2:B10,2,0)

to ignore ISNA when there is no match, use this
=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,2,0)),"",VLOOKUP (A4,Sheet2!B2:B10,2,0))

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.

Thank You

cheers, francis



"KenCanuck" wrote:

I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). This result (the formula) will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't get
it to work.

Thanks! - Ken


KenCanuck

Need formula help for Excel
 
Got #REF

I'll try explain again, I probably wasn't clear.

Sheet 1: cell A4. Has drop down list of names (Pat, Jim, Bob)
Sheet 2: Cells B1:B3 has names Pat, Jim, Bob
Sheet 2: Cells C1:C3 has ages 33, 24, 47

I want Cell B4 in Sheet 1 to lookup and match the name and show as a result
the corresponding age.

Hope this makes sense. - Thanks again.

"T. Valko" wrote:

Try this:

=VLOOKUP(A4,Sheet2!B$2:C$10,2,0)

--
Biff
Microsoft Excel MVP


"KenCanuck" wrote in message
...
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10)
and
supply the corresponding value in (C2-C10). This result (the formula)
will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't
get
it to work.

Thanks! - Ken





Pete_UK

Need formula help for Excel
 
A few typos, Francis:

=VLOOKUP(A4,Sheet2!B2:C10,2,0)

and:

=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,1,0)),"",VLOOKUP (A4,Sheet2!
B2:C10,2,0))

Hope this helps.

Pete

On Feb 24, 7:00*pm, xlmate wrote:
try this in B4

=VLOOKUP(A4,Sheet2!B2:B10,2,0)

to ignore ISNA when there is no match, use this
=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,2,0)),"",VLOOKUP (A4,Sheet2!B2:B10,2,0))

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you. *

Thank You

cheers, francis



"KenCanuck" wrote:
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). *This result (the formula) will
be in cell B4 on sheet 1. *I thought it was a MATCH function but I can't get
it to work.


Thanks! - Ken- Hide quoted text -


- Show quoted text -



KenCanuck

Need formula help for Excel
 

Hi, thanks for the response, I got #REF

I'll try explain again, I probably wasn't clear.

Sheet 1: cell A4. Has drop down list of names (Pat, Jim, Bob)
Sheet 2: Cells B1:B3 has names Pat, Jim, Bob
Sheet 2: Cells C1:C3 has ages 33, 24, 47

I want Cell B4 in Sheet 1 to lookup and match the name and show as a result
the corresponding age.

Hope this makes sense. - Thanks again.

"xlmate" wrote:

try this in B4

=VLOOKUP(A4,Sheet2!B2:B10,2,0)

to ignore ISNA when there is no match, use this
=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,2,0)),"",VLOOKUP (A4,Sheet2!B2:B10,2,0))

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.

Thank You

cheers, francis



"KenCanuck" wrote:

I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). This result (the formula) will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't get
it to work.

Thanks! - Ken


Pete_UK

Need formula help for Excel
 
Try this:

=VLOOKUP(A4,'Sheet 2'!B1:C3,2,0)

Ensure that the sheet name is exactly as it appears on the sheet tab,
including any spaces - apostrophes are needed if you have spaces in
the sheet name.

Hope this helps.

Pete

On Feb 24, 7:33*pm, KenCanuck
wrote:
Hi, thanks for the response, I got #REF

I'll try explain again, I probably wasn't clear. *

Sheet 1: *cell A4. *Has drop down list of names (Pat, Jim, Bob)
Sheet 2: Cells B1:B3 has names Pat, Jim, Bob
Sheet 2: Cells C1:C3 has ages 33, 24, 47

I want Cell B4 in Sheet 1 to lookup and match the name and show as a result
the corresponding age.

Hope this makes sense. - Thanks again.



"xlmate" wrote:
try this in B4


=VLOOKUP(A4,Sheet2!B2:B10,2,0)


to ignore ISNA when there is no match, use this
=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,2,0)),"",VLOOKUP (A4,Sheet2!B2:B10,2,0))


--
Hope this is helpful


Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you. *


Thank You


cheers, francis


"KenCanuck" wrote:


I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). *This result (the formula) will
be in cell B4 on sheet 1. *I thought it was a MATCH function but I can't get
it to work.


Thanks! - Ken- Hide quoted text -


- Show quoted text -



T. Valko

Need formula help for Excel
 
I probably wasn't clear.

No, you were very clear!

If you're getting a #REF! error make sure you use the correct sheet name and
the correct syntax to define the sheet name in the formula. What is the
*exact* sheet name of sheet 2?

--
Biff
Microsoft Excel MVP


"KenCanuck" wrote in message
...
Got #REF

I'll try explain again, I probably wasn't clear.

Sheet 1: cell A4. Has drop down list of names (Pat, Jim, Bob)
Sheet 2: Cells B1:B3 has names Pat, Jim, Bob
Sheet 2: Cells C1:C3 has ages 33, 24, 47

I want Cell B4 in Sheet 1 to lookup and match the name and show as a
result
the corresponding age.

Hope this makes sense. - Thanks again.

"T. Valko" wrote:

Try this:

=VLOOKUP(A4,Sheet2!B$2:C$10,2,0)

--
Biff
Microsoft Excel MVP


"KenCanuck" wrote in message
...
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4
in
Sheet 1 then references Sheet 2 to match that text out of a list
(B2-B10)
and
supply the corresponding value in (C2-C10). This result (the formula)
will
be in cell B4 on sheet 1. I thought it was a MATCH function but I
can't
get
it to work.

Thanks! - Ken







xlmate

Need formula help for Excel
 
Hi Pete

Thanks.


--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"Pete_UK" wrote:

A few typos, Francis:

=VLOOKUP(A4,Sheet2!B2:C10,2,0)

and:

=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,1,0)),"",VLOOKUP (A4,Sheet2!
B2:C10,2,0))

Hope this helps.

Pete

On Feb 24, 7:00 pm, xlmate wrote:
try this in B4

=VLOOKUP(A4,Sheet2!B2:B10,2,0)

to ignore ISNA when there is no match, use this
=IF(ISNA(VLOOKUP(A4,Sheet2!B2:B10,2,0)),"",VLOOKUP (A4,Sheet2!B2:B10,2,0))

--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.

Thank You

cheers, francis



"KenCanuck" wrote:
I have 2 worksheets. I need to have a formula that reads cell (Ex.) A4 in
Sheet 1 then references Sheet 2 to match that text out of a list (B2-B10) and
supply the corresponding value in (C2-C10). This result (the formula) will
be in cell B4 on sheet 1. I thought it was a MATCH function but I can't get
it to work.


Thanks! - Ken- Hide quoted text -


- Show quoted text -





All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com