+ Reply to Thread
Results 1 to 9 of 9

Quick formula question

  1. #1
    jjjam
    Guest

    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. #2
    ScottO
    Guest

    Re: Quick formula question

    Try this in F2 ...

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

    Rgds,
    ScottO

    "jjjam" <[email protected]> wrote in message
    news:[email protected]...
    | 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. #3
    jjjam
    Guest

    Re: Quick formula question

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > | 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. #4
    jjjam
    Guest

    Re: Quick formula question

    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" <[email protected]> wrote in message
    > > news:[email protected]...
    > > | 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. #5
    ScottO
    Guest

    Re: Quick formula question

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

    "jjjam" <[email protected]> wrote in message
    news:[email protected]...
    | 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" <[email protected]> wrote in message
    | > > news:[email protected]...
    | > > | 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. #6
    jjjam
    Guest

    Re: Quick formula question

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > | 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" <[email protected]> wrote in message
    > | > > news:[email protected]...
    > | > > | 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. #7
    jjjam
    Guest

    Re: Quick formula question

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > | 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" <[email protected]> wrote in message
    > | > > news:[email protected]...
    > | > > | 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. #8
    ScottO
    Guest

    Re: Quick formula question

    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" <[email protected]> wrote in message
    news:[email protected]...
    | 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" <[email protected]> wrote in message
    | > news:[email protected]...
    | > | 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" <[email protected]> wrote in message
    | > | > > news:[email protected]...
    | > | > > | 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. #9
    ScottO
    Guest

    Re: Quick formula question

    Glad it worked out for you.
    S

    "jjjam" <[email protected]> wrote in message
    news:[email protected]...
    | 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" <[email protected]> wrote in message
    | > news:[email protected]...
    | > | 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" <[email protected]> wrote in message
    | > | > > news:[email protected]...
    | > | > > | 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1