+ Reply to Thread
Results 1 to 6 of 6

=LOOKUP(MONTH)

  1. #1
    SS
    Guest

    =LOOKUP(MONTH)

    When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    cell is blank

    If I have
    no date in A1 but have a formula in C1
    (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})

    it give me a value of Jan is there a way around this?

  2. #2
    Toppers
    Guest

    RE: =LOOKUP(MONTH)

    something like ...

    =IF(A1="","",LOOKUP(MONTH(A1),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"}))

    HTH

    "SS" wrote:

    > When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    > cell is blank
    >
    > If I have
    > no date in A1 but have a formula in C1
    > (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})
    >
    > it give me a value of Jan is there a way around this?


  3. #3
    Toppers
    Guest

    RE: =LOOKUP(MONTH)

    something like ...

    =IF(A1="","",LOOKUP(MONTH(A1),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"}))

    HTH

    "SS" wrote:

    > When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    > cell is blank
    >
    > If I have
    > no date in A1 but have a formula in C1
    > (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})
    >
    > it give me a value of Jan is there a way around this?


  4. #4
    Toppers
    Guest

    RE: =LOOKUP(MONTH)

    something like ...

    =IF(A1="","",LOOKUP(MONTH(A1),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"}))

    HTH

    "SS" wrote:

    > When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    > cell is blank
    >
    > If I have
    > no date in A1 but have a formula in C1
    > (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})
    >
    > it give me a value of Jan is there a way around this?


  5. #5
    Ron Coderre
    Guest

    RE: =LOOKUP(MONTH)

    Not a LOOKUP solution, but perhaps this will work:

    =IF(A1<>"",TEXT(A1,"mmm"),"")

    Does that help?
    ***********
    Regards,
    Ron

    XL2002, WinXP


    "SS" wrote:

    > When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    > cell is blank
    >
    > If I have
    > no date in A1 but have a formula in C1
    > (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})
    >
    > it give me a value of Jan is there a way around this?


  6. #6
    SS
    Guest

    RE: =LOOKUP(MONTH)

    You're a star I appreciate your help, it works!!!!

    "Toppers" wrote:

    > something like ...
    >
    > =IF(A1="","",LOOKUP(MONTH(A1),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"}))
    >
    > HTH
    >
    > "SS" wrote:
    >
    > > When lookign up a range why does the =LOOKUP(MONTH) give values even if the
    > > cell is blank
    > >
    > > If I have
    > > no date in A1 but have a formula in C1
    > > (=LOOKUP(MONTH(RC[-2]),{0,1,2,3,4,5,6,7,8,9,10,11,12},{"
    > > ","JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"})
    > >
    > > it give me a value of Jan is there a way around this?


+ 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