+ Reply to Thread
Results 1 to 10 of 10

Range Chart with IF result

  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Range Chart with IF result

    I was wondering if someone could point in the right direction in order to come up with a function that might work for looking at a numerical range and coming back with a result.

    Example

    From 0-52 weeks = 1.5
    53-104 weeks = 1.7

    So if a cell eqauls any number from 53-104 it would give a result of 1.7 or if a cell had 0-52 it would give a result of 1.5 so on and so forth.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Range Chart with IF result

    Do the numbers go above 104, and if so is there a similar increase of 0.2 on the previous year's week numbers? What column is your week numbers in?

    Pete

  3. #3
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: Range Chart with IF result

    Yes the numbers go above 104 and no they don't increase incremetally by .2. The cells would look like this

    A1 A2 A3
    0 52 1.5
    53 104 1.7
    ETC

    Example if A5=75 then A6=1.7 according to the ranges above.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Range Chart with IF result

    I meant what would the value returned be if the numbers were in the range 105 to 156, or 157 to 208, and so on.

    Pete

  5. #5
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: Range Chart with IF result

    0 52 1.53846
    53 104 1.69231
    105 156 1.84615
    157 208 2
    209 260 2.15384
    261 312 2.30769
    313 364 2.46153
    365 416 2.61538
    417 468 2.76923
    469 520 2.92307
    521> 3.07692

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Range Chart with IF result

    Okay, you can just put that 3-column table somewhere in your sheet (suppose it occupies columns L, M and N starting in row 1). Then, if your week number is in cell A5, as you suggested in Post #3, then you can use this formula in A6 (or B5 if you want to copy it down alongside other week number values):

    =VLOOKUP(A5,$L:$N,3)

    and it will return the appropriate value for the number of weeks.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: Range Chart with IF result

    Thanks I'll give it a try, I originally thought about using VLOOKUP.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Range Chart with IF result

    Strictly speaking, you don't need the middle column of that table, but it might make more sense when reading it if it is left in.

    Pete

  9. #9
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: Range Chart with IF result

    Seems to have worked thanks for your help

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Range Chart with IF result

    You're welcome - glad to be of help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 04-22-2015, 12:58 PM
  2. Replies: 4
    Last Post: 08-04-2014, 04:48 AM
  3. [SOLVED] Colour Bars in a bar chart dependent on the result
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2014, 07:20 AM
  4. [SOLVED] Can't LOOKUP a value in a range and get a result from column 1 of the range
    By bobboy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2013, 09:06 PM
  5. Chart that resizes based on result of VLOOKUP
    By pritchaj in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 04-06-2012, 10:18 AM
  6. chart data result problems not displaying accurately
    By Akasha4 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-09-2011, 12:34 PM
  7. [SOLVED] Is there a formula result that will not appear on a chart
    By Ben Morton in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-01-2005, 09:06 PM

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