+ Reply to Thread
Results 1 to 5 of 5

If temperature is <# ># then #

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    2

    If temperature is <# ># then #

    Hello, I'm a weather guy for the Air Force stationed in Honduras. i'm trying to make an easy excel tracker for the heat index here. I'm looking for a formua where, if c1 < 78 then d1=NONE, if c1 ≥ 78 < 81.9 then d1=1, ≥ 82 < 84.9 then 2, ≥ 85 , < 87.9 then 3, ≥ 88 < 89.9 then 4, ≥ 90 then 5. with all cells pertaining to c1 and d1. I would much appreciate any help, I had a full head of hair before attempting this.
    Last edited by lasto; 05-21-2009 at 03:25 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: If temperature is <# ># then #

    =lookup(c1, {-460,78,82,85,88,90},{"none",1,2,3,4,5})
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If temperature is <# ># then #

    Try in D1:

    =Lookup(C1,{0,78,82,85,88,90},{"None",1,2,3,4,5})

    Yes, if heat index can be less than 0, you need to put that bottom limit were I entered a 0 in first array.
    Last edited by NBVC; 05-21-2009 at 03:34 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    05-21-2009
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: If temperature is <# ># then #

    Wow that took about all of 5 min. Thanks a lot guys works perfectly. i was trying these insane if, then statements. Again, many thanks.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If temperature is <# ># then #

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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