+ Reply to Thread
Results 1 to 11 of 11

Showing min and max values as a line inside a cell

  1. #1
    Registered User
    Join Date
    02-08-2016
    Location
    Newcastle, Australia
    MS-Off Ver
    2013
    Posts
    7

    Question Showing min and max values as a line inside a cell

    Hi there,
    I am hoping there is a way to do this, I feel like I've seen it done before.

    I have a table which lists a number of questions. The respondents chose their answers from 5 possible selections (very little through to very much, for example).

    I've given each of the answers a corresponding number and found the median answer for each question, which I have then displayed using conditional formatting data bars. So the minimum value is 1 and the maximum is 5. I'd now like to present the min/max as a line over the top of the conditional formatting in the cell (similar to the way a sparkline would work, but a horizontal line that looks something like this |----------| and is positioned within the cell at the min and max points).

    Hope this makes sense. Any solution would be very much appreciated!

    Thanks in advance.
    E

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Showing min and max values as a line inside a cell

    @ emma! Hi and welcome to the forum could you upload a sample book

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-08-2016
    Location
    Newcastle, Australia
    MS-Off Ver
    2013
    Posts
    7

    Re: Showing min and max values as a line inside a cell

    Hi Hemesh - hopefully this gives you an idea of what I am after... I could manually put all of those in using shapes, but the actual survey has over 60 questions and I'd really love to not have to do that!
    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Showing min and max values as a line inside a cell

    Is something like in the attached something you can build on? The formula in B12 and filled down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    02-08-2016
    Location
    Newcastle, Australia
    MS-Off Ver
    2013
    Posts
    7

    Re: Showing min and max values as a line inside a cell

    Not quite what I need. Depending on the size of the column and text/content alignment it throws the positioning of the line out. But that's the closest I've come without doing them all manually...

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Showing min and max values as a line inside a cell

    Let me sleep on it. Maybe something will take shape.

  7. #7
    Registered User
    Join Date
    02-08-2016
    Location
    Newcastle, Australia
    MS-Off Ver
    2013
    Posts
    7

    Re: Showing min and max values as a line inside a cell

    Thank you! Much appreciated!

    I've been working on it all day :/

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Showing min and max values as a line inside a cell

    may be in b2
    copy paste below
    =REPT(" ",[@Min]-1)&"|"&REPT("--",SUM([@Max]+[@Min]))&"|"

  9. #9
    Registered User
    Join Date
    02-08-2016
    Location
    Newcastle, Australia
    MS-Off Ver
    2013
    Posts
    7

    Re: Showing min and max values as a line inside a cell

    Not quite - lines aren't quite sitting in the right place and still dependant on sizing of the column.

    Thank you both for your help - might just do them manually for now!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Showing min and max values as a line inside a cell

    emma390,

    Here's another approach. This uses a lookup table and this array entered formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulae array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    I used the MS Gothic 12 font for this. You may want to experiment with fonts until you get the "Goldie Locks" combination.

    The formula above references a hand typed lookup table and data. I reasoned that there are only so many combinations of lower and upper boundaries. The rest could be filled by formula.


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Sample ouput Lower boundaries Upper boundaries
    Lookup Table
    2
    Question 1 [--------]
    1
    4
    Mins
    Maxes
    Line Charts
    3
    Question 2 [--------]
    2
    5
    1
    1
    [--]
    4
    Question 3 [----]
    3
    4
    1
    2
    [----]
    5
    Question 4 [----------]
    1
    5
    1
    3
    [------]
    6
    Question 5 [------]
    3
    5
    1
    4
    [--------]
    7
    Question 6 [------]
    2
    4
    1
    5
    [----------]
    8
    Question 7 [----]
    1
    2
    9
    Question 8 [----]
    2
    3
    10
    Question 9 [------]
    1
    3

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Showing min and max values as a line inside a cell

    emma390,

    Here's another approach. This uses a lookup table and this array entered formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulae array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    I used the MS Gothic 12 font for this. You may want to experiment with fonts until you get the "Goldie Locks" combination.

    The formula above references a hand typed lookup table and data. I reasoned that there are only so many combinations of lower and upper boundaries. The rest could be filled by formula.

    Edit The header add-in that I use didn't retain the spacing in the below grid. I'll post the WB I did it in. Hope this helps.


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Sample ouput Lower boundaries Upper boundaries
    Lookup Table
    2
    Question 1 [--------]
    1
    4
    Mins
    Maxes
    Line Charts
    3
    Question 2 [--------]
    2
    5
    1
    1
    [--]
    4
    Question 3 [----]
    3
    4
    1
    2
    [----]
    5
    Question 4 [----------]
    1
    5
    1
    3
    [------]
    6
    Question 5 [------]
    3
    5
    1
    4
    [--------]
    7
    Question 6 [------]
    2
    4
    1
    5
    [----------]
    8
    Question 7 [----]
    1
    2
    9
    Question 8 [----]
    2
    3
    10
    Question 9 [------]
    1
    3

+ 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: 2
    Last Post: 12-07-2014, 04:49 PM
  2. [SOLVED] Text in next line inside a cell Report
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 01:33 AM
  3. Line Chart series showing values for NA()
    By dcgrove in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-22-2012, 04:45 AM
  4. Line values not showing by cursor in chart
    By BCB in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-07-2007, 12:27 PM
  5. How do I insert a new line of text inside a cell
    By thudson in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-03-2006, 01:10 PM
  6. pulling from 'line' inside cell- best way to reference in VBA?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2006, 11:15 AM
  7. Replies: 6
    Last Post: 07-12-2005, 04:05 PM

Tags for this Thread

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