+ Reply to Thread
Results 1 to 9 of 9

Excel Graphing question

  1. #1
    Registered User
    Join Date
    01-20-2008
    Posts
    35

    Excel Graphing question

    Hey Guys,

    I am doing some behavioral observation with cockroaches and we are observing their grooming patterns.

    Basically they groom 8 appendages and my codes for them are

    A, C, P, HL, FL, L, Pause,AB...

    So over a 20 minute period or so i observe and note what part they groom and for how long. After that i put my data in an excel sheet and i make a bar graph. I want to use a bar graph that shows the sequence of grooming and i want all the a's nomatter the location of the cell to be one color and c's to be one color and so on.. i have attached a spreadsheet of what my data looks like..

    how would i do that?

    Thanks in advance!

    Shant
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-20-2008
    Posts
    35

    Specifying colors on a graph

    How can i write a if statement so that when i make a graph certain letters will be certain colors for all the letters on a sheet using a bar chart..

    for example.

    if "a" then i want it to appear red

    if c i want it to appear yellow

  3. #3
    Registered User
    Join Date
    01-20-2008
    Posts
    35

    If statements on excel worksheet

    How can i write a if statement so that when i make a graph certain letters will be certain colors for all the letters on a sheet using a bar chart..

    for example.

    if "a" then i want it to appear red

    if c i want it to appear yellow

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    You will need code.
    http://peltiertech.com/WordPress/200...ategory-label/

    Or set up multiple series for each colour and IF formulas.
    It would help to see a workbook example if the VBA solution is not suitable.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    You can use multiple series, in a stacked bar chart.
    With formula to display bar if appropriate.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-20-2008
    Posts
    35
    sure here is my workbook example, see as the A's change color going down the bar graph, i just need help writing a code to restrict the A letter to be only one color and the same with the C and the same with the other letters, but all i need is just one example i will do the rest myself
    Attached Files Attached Files

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    Here is a version more link a gantt chart.

    I have merged all your posts on the same top. Please don't start multiple posts on the same problem.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-20-2008
    Posts
    35
    andy! thank you so much for all your help!

    one last question, how can i change this to be a one colum bar chart stacked like the attached spreadsheet
    Attached Files Attached Files

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    for that you would need to use the vba code approach.

+ 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