SOLVED

Number and Goal Visual

%3CLINGO-SUB%20id%3D%22lingo-sub-3095822%22%20slang%3D%22en-US%22%3ENumber%20and%20Goal%20Visual%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3095822%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20table%20with%202%20numbers%20-%20the%20first%20number%20is%20the%20current%20score%20(column%20A)%20and%20the%20second%20number%20is%20ideal%20score%20(column%20B).%20I%20would%20like%20to%20show%20a%20graph%20(similar%20to%20the%20photo%20below)%20in%20column%20C%20that%20has%20the%20current%20score%20and%20a%20line%20(or%20visual)%20for%20the%20ideal%20score.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20also%20open%20to%20creating%20a%20graph%20elsewhere%20and%20referencing%20it%20with%20an%20%3DCELL%20formula%2C%20but%20I%20do%20not%20think%20this%20is%20possible%20to%20do%20with%20a%20graph.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ligg_1_0-1643667425038.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344036i32AEB7796C3CFFEF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ligg_1_0-1643667425038.png%22%20alt%3D%22ligg_1_0-1643667425038.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3095822%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3095965%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20and%20Goal%20Visual%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3095965%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1292858%22%20target%3D%22_blank%22%3E%40ligg_1%3C%2FA%3E%26nbsp%3BSo%20in%20the%20attached%20I%20did%202%20tricks%20using%20conditional%20formatting%3A%3C%2FP%3E%3CP%3Ea)%20using%20the%20data%20bar%20formatting%20you%20can%20select%20those%202%20cells%20and%20it%20will%20fill%20a%20bar%20graph%20based%20on%20the%20value%20in%20that%20cell%20compared%20to%20the%20max%20value.%26nbsp%3B%20And%20then%20I%20used%20a%20second%20conditional%20formatting%20to%20just%20override%20the%20first%20in%20that%20second%20cell%20(see%20row%205%20in%20the%20picture%2Ffile)%3C%2FP%3E%3CP%3Eb)%20that%20is%20a%20pain%20because%20you%20will%20need%202%20rules%20for%20each%20line%20so%20another%20option%20I%20give%20uses%20the%20cells%20to%20the%20right%20and%20highlights%20cells%20based%20on%20the%20values%20in%20those%20cells%20and%20for%20that%20I%20created%20only%202%20rules%20that%20cover%20ALL%20the%20rows.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3095972%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20and%20Goal%20Visual%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3095972%22%20slang%3D%22en-US%22%3EBTW%2C%20you%20could%20also%20use%20a%20large%20fixed%20number%20of%20columns%20(e.g.%20100)%20and%20make%20the%20columns%20very%20narrow%20(i.e.%20for%20better%20'resolution')%20and%20then%20use%20INT(A1%2FB1)%20as%20the%20count%20of%20number%20of%20cells%20to%20highlight.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3095980%22%20slang%3D%22en-US%22%3ERe%3A%20Number%20and%20Goal%20Visual%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3095980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3BHere%20is%20an%20example%20using%20a%20fixed%20'graph'%20size%20and%20using%20propotions%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mtarler_0-1643670981242.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344047i5CF18E355DCC7BF7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mtarler_0-1643670981242.png%22%20alt%3D%22mtarler_0-1643670981242.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello - 

 

I am working on a table with 2 numbers - the first number is the current score (column A) and the second number is ideal score (column B). I would like to show a graph (similar to the photo below) in column C that has the current score and a line (or visual) for the ideal score. 

 

I am also open to creating a graph elsewhere and referencing it with an =CELL formula, but I do not think this is possible to do with a graph. 

 

Thanks in advance! 

ligg_1_0-1643667425038.png

 

6 Replies

@ligg_1 So in the attached I did 2 tricks using conditional formatting:

a) using the data bar formatting you can select those 2 cells and it will fill a bar graph based on the value in that cell compared to the max value.  And then I used a second conditional formatting to just override the first in that second cell (see row 5 in the picture/file)

b) that is a pain because you will need 2 rules for each line so another option I give uses the cells to the right and highlights cells based on the values in those cells and for that I created only 2 rules that cover ALL the rows.

mtarler_0-1643670399471.png

 

BTW, you could also use a large fixed number of columns (e.g. 100) and make the columns very narrow (i.e. for better 'resolution') and then use INT(A1/B1) as the count of number of cells to highlight.

@mtarler Here is an example using a fixed 'graph' size and using propotions:

mtarler_0-1643670981242.png

 

Thanks, @mtarler. I tried to go with the option pictured below but I don't think that you can simply copy the conditional formatting and have the reference be the row intended (ideally the last row in the sample which shows current and desired both at 1 would be fully greyed out). Is there a way to do this or would I need to update each individually? 

ligg_1_1-1643681845769.png

ligg_1_2-1643681944034.png

ligg_1_3-1643681987381.png

 

 

best response confirmed by ligg_1 (Occasional Contributor)
Solution
no you can't use relative references but you CAN use FIXED numbers so you can set min = 0 and max = 1 and then in K use the formula =G4/I4 (or if that is a table =[Current]/[Desired] or using dynamic arrays =G4:G6/I4:I6)
Then also click "Show Bar Only"
Thanks! Used the option of [current]/[desired] and created 2 rules.