Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jjjam
 
Posts: n/a
Default Quick formula question

Simple question but I'm stumped. How do I write a formula that will take a
value from a cell (C2), scan a column (A2:A50) for the value in C2, then put
a Y or a N in F2 if the value is found (Y) or not found (N).


  #2   Report Post  
ScottO
 
Posts: n/a
Default

Try this in F2 ...

=IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")

Rgds,
ScottO

"jjjam" wrote in message
...
| Simple question but I'm stumped. How do I write a formula that will take
a
| value from a cell (C2), scan a column (A2:A50) for the value in C2, then
put
| a Y or a N in F2 if the value is found (Y) or not found (N).
|
|


  #3   Report Post  
jjjam
 
Posts: n/a
Default

That's the ticket!...thanks.

"ScottO" wrote:

Try this in F2 ...

=IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")

Rgds,
ScottO

"jjjam" wrote in message
...
| Simple question but I'm stumped. How do I write a formula that will take
a
| value from a cell (C2), scan a column (A2:A50) for the value in C2, then
put
| a Y or a N in F2 if the value is found (Y) or not found (N).
|
|



  #4   Report Post  
jjjam
 
Posts: n/a
Default

Would it be possible to modify the formula below to include the following
logic when a match is found?
Example:
If the match to C2 is found in cell $A$15, take cell $D$15 and place it in G2.



"jjjam" wrote:

That's the ticket!...thanks.

"ScottO" wrote:

Try this in F2 ...

=IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")

Rgds,
ScottO

"jjjam" wrote in message
...
| Simple question but I'm stumped. How do I write a formula that will take
a
| value from a cell (C2), scan a column (A2:A50) for the value in C2, then
put
| a Y or a N in F2 if the value is found (Y) or not found (N).
|
|



  #5   Report Post  
ScottO
 
Posts: n/a
Default

Yes.
Put this in G2
=INDEX($D$2:$D$50,MATCH(C2,$A$2:$A$50,0))
Rgds,
ScottO

"jjjam" wrote in message
...
| Would it be possible to modify the formula below to include the following
| logic when a match is found?
| Example:
| If the match to C2 is found in cell $A$15, take cell $D$15 and place it in
G2.
|
|
|
| "jjjam" wrote:
|
| That's the ticket!...thanks.
|
| "ScottO" wrote:
|
| Try this in F2 ...
|
| =IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")
|
| Rgds,
| ScottO
|
| "jjjam" wrote in message
| ...
| | Simple question but I'm stumped. How do I write a formula that will
take
| a
| | value from a cell (C2), scan a column (A2:A50) for the value in C2,
then
| put
| | a Y or a N in F2 if the value is found (Y) or not found (N).
| |
| |
|
|
|




  #6   Report Post  
jjjam
 
Posts: n/a
Default

ScottO,
....the result is coming up as #N/A. Am I doing something wrong? (obviously
YES).....

=INDEX('March 2005'!D2:D187,MATCH(C2,'March 2005'!A2:A187,0))

"ScottO" wrote:

Yes.
Put this in G2
=INDEX($D$2:$D$50,MATCH(C2,$A$2:$A$50,0))
Rgds,
ScottO

"jjjam" wrote in message
...
| Would it be possible to modify the formula below to include the following
| logic when a match is found?
| Example:
| If the match to C2 is found in cell $A$15, take cell $D$15 and place it in
G2.
|
|
|
| "jjjam" wrote:
|
| That's the ticket!...thanks.
|
| "ScottO" wrote:
|
| Try this in F2 ...
|
| =IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")
|
| Rgds,
| ScottO
|
| "jjjam" wrote in message
| ...
| | Simple question but I'm stumped. How do I write a formula that will
take
| a
| | value from a cell (C2), scan a column (A2:A50) for the value in C2,
then
| put
| | a Y or a N in F2 if the value is found (Y) or not found (N).
| |
| |
|
|
|



  #7   Report Post  
jjjam
 
Posts: n/a
Default

Ignore my last comment. It worked fine. #N/A is the result of a no-match,
when there IS a match, it inserts the contents of D15 as planned.

You are amazing, and should immediately get yourself a cold beer!

"ScottO" wrote:

Yes.
Put this in G2
=INDEX($D$2:$D$50,MATCH(C2,$A$2:$A$50,0))
Rgds,
ScottO

"jjjam" wrote in message
...
| Would it be possible to modify the formula below to include the following
| logic when a match is found?
| Example:
| If the match to C2 is found in cell $A$15, take cell $D$15 and place it in
G2.
|
|
|
| "jjjam" wrote:
|
| That's the ticket!...thanks.
|
| "ScottO" wrote:
|
| Try this in F2 ...
|
| =IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")
|
| Rgds,
| ScottO
|
| "jjjam" wrote in message
| ...
| | Simple question but I'm stumped. How do I write a formula that will
take
| a
| | value from a cell (C2), scan a column (A2:A50) for the value in C2,
then
| put
| | a Y or a N in F2 if the value is found (Y) or not found (N).
| |
| |
|
|
|



  #8   Report Post  
ScottO
 
Posts: n/a
Default

The syntax of your formula looks right, so my guess is that the value in C2
doesn't exist in the range 'March 2005'!A2:A187 ... but I'm sure that you've
already checked for that.
I don't have any other suggestions.
Rgds,
ScottO

"jjjam" wrote in message
...
| ScottO,
| ...the result is coming up as #N/A. Am I doing something wrong?
(obviously
| YES).....
|
| =INDEX('March 2005'!D2:D187,MATCH(C2,'March 2005'!A2:A187,0))
|
| "ScottO" wrote:
|
| Yes.
| Put this in G2
| =INDEX($D$2:$D$50,MATCH(C2,$A$2:$A$50,0))
| Rgds,
| ScottO
|
| "jjjam" wrote in message
| ...
| | Would it be possible to modify the formula below to include the
following
| | logic when a match is found?
| | Example:
| | If the match to C2 is found in cell $A$15, take cell $D$15 and place
it in
| G2.
| |
| |
| |
| | "jjjam" wrote:
| |
| | That's the ticket!...thanks.
| |
| | "ScottO" wrote:
| |
| | Try this in F2 ...
| |
| | =IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")
| |
| | Rgds,
| | ScottO
| |
| | "jjjam" wrote in message
| | ...
| | | Simple question but I'm stumped. How do I write a formula that
will
| take
| | a
| | | value from a cell (C2), scan a column (A2:A50) for the value in
C2,
| then
| | put
| | | a Y or a N in F2 if the value is found (Y) or not found (N).
| | |
| | |
| |
| |
| |
|
|
|


  #9   Report Post  
ScottO
 
Posts: n/a
Default

Glad it worked out for you.
S

"jjjam" wrote in message
...
| Ignore my last comment. It worked fine. #N/A is the result of a
no-match,
| when there IS a match, it inserts the contents of D15 as planned.
|
| You are amazing, and should immediately get yourself a cold beer!
|
| "ScottO" wrote:
|
| Yes.
| Put this in G2
| =INDEX($D$2:$D$50,MATCH(C2,$A$2:$A$50,0))
| Rgds,
| ScottO
|
| "jjjam" wrote in message
| ...
| | Would it be possible to modify the formula below to include the
following
| | logic when a match is found?
| | Example:
| | If the match to C2 is found in cell $A$15, take cell $D$15 and place
it in
| G2.
| |
| |
| |
| | "jjjam" wrote:
| |
| | That's the ticket!...thanks.
| |
| | "ScottO" wrote:
| |
| | Try this in F2 ...
| |
| | =IF(ISNA(MATCH(C2,$A$2:$A$50,0)),"N","Y")
| |
| | Rgds,
| | ScottO
| |
| | "jjjam" wrote in message
| | ...
| | | Simple question but I'm stumped. How do I write a formula that
will
| take
| | a
| | | value from a cell (C2), scan a column (A2:A50) for the value in
C2,
| then
| | put
| | | a Y or a N in F2 if the value is found (Y) or not found (N).
| | |
| | |
| |
| |
| |
|
|
|


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
formula question Pam Coleman Excel Worksheet Functions 9 April 11th 05 08:51 AM
"IF" formula question Barb1 Excel Worksheet Functions 2 April 5th 05 05:27 PM
Excel question? Regarding cell formula Kristin Excel Worksheet Functions 7 April 1st 05 10:30 PM
time formula question... Greg Excel Discussion (Misc queries) 5 February 25th 05 10:11 AM
SUM array formula question Dan Excel Worksheet Functions 6 November 8th 04 05:49 AM


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