+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting from a different sheet to highlight specific ranges

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    3

    Conditional Formatting from a different sheet to highlight specific ranges

    Hi All

    I have not been using excel for a long time and I have been tasked with sorting out a massive spreadsheet that is to be populated from another spreadsheet that will change all the time.

    The first spread sheet has a workers name and tool used and down the first two rows vertically and the top three columns are the days of the week the dates and the weeks.The second spread sheet has the workers names and tool used down from the first two rows and then the next 8 rows are starting and ending dates for different stages of the job. I have no idea how to highlight that worker on that day on that job in the first sheet from the second and if I do get the start or end point of the job highlighted how to highlight the time spent in between. I need to be able to see what worker is working on what tool on what job on what dates.

    If anyone could help me or point me in the right direction I would be very great full. I need the formula in the first spreadsheet to stay the same for reuse as the second spreadsheet will change each week. This will then update the first.

    Thank you
    Not sure if I made much sense but if you look at a sample sheet you might see what I mean.
    smaller sample.xlsx
    Last edited by Bengymivec; 01-21-2015 at 08:10 PM. Reason: naming and added file

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Conditional Formatting from a different sheet to highlight specific ranges

    Hi Bengymivec, I'm not certain exactly what you are looking for, but is this heading in the right direction?

    Edit:
    Sorry, I just re-read the title. What I did has absolutely nothing to do with conditional formatting, I must be way more tired then I thought

    Umm, so do you want to "Select" a worker and have his info highlighted?

    Can you manually highlight what info you need highlighted and also manually type in the "time spent" for that job so we can see exactly what results you are looking for?

    Edit 2:
    OK, so working on my most likely totally wrong hypothesis, I added a "worker" drop-down selection and added conditional formatting.
    I'm sorry if I'm completely doing this wrong. Maybe I should come back after some sleep
    Attached Files Attached Files
    Last edited by Beamernsw; 01-22-2015 at 12:35 PM.

  3. #3
    Registered User
    Join Date
    01-21-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formatting from a different sheet to highlight specific ranges

    Hey Beamernsw

    Sorry I didnt explain it very well I was mentally exhausted from looking at it all day and the values I am dealing with are in the 1000s of tools and over the past two years.

    So if you see along the top it has different aspects of the job process. The values I have explain what the job parts are much better but are to sensitive to post on the internet due to security issues.
    Another issue is that the dates I have used in the sample are a day apart when in reality the job parts can be days weeks or months apart so take that into account. The rules I will be making will sit on top of the job start-job finish highlighting. Adding the worker isnt actually needed now that I spent more time looking at it. I can just add a header and sort via that instead. So What I proceeded to do was do an and function on sheet1. This function checks the first date at the top "H£" then checks the the job start of the first job on sheet 2 "sheet2!I2" then checks sheet1 H3 again and compares it to the Job finish sheet2V2.

    Once I have the start and the end working I can work on the parts in between job part 2-4 will be clear, job part 5-6 will be yellow also with some text, Job part7-10 will be red and job part 11-finish will be yellow again.
    This is the function I have made in the formatting "=AND(H$3>=Sheet2!$I2,H$3<=Sheet2!$V2)" but I am not sure if this is the best way to do this. I will have to replicate this 2000+ times for a period of 2 years and sheet 2 values will be updated each week. I was thinking I would have to use something different since they are dates but im not sure if excel will just class all dates of this format as numberic values eg 42012 = 08-01-2015.
    smaller sample updated.xlsx

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formatting from a different sheet to highlight specific ranges

    Hey Beamernsw

    Sorry I didnt explain it very well I was mentally exhausted from looking at it all day and the values I am dealing with are in the 1000s of tools and over the past two years.

    So if you see along the top it has different aspects of the job process. The values I have explain what the job parts are much better but are to sensitive to post on the internet due to security issues.
    Another issue is that the dates I have used in the sample are a day apart when in reality the job parts can be days weeks or months apart so take that into account. The rules I will be making will sit on top of the job start-job finish highlighting. Adding the worker isnt actually needed now that I spent more time looking at it. I can just add a header and sort via that instead. So What I proceeded to do was do an and function on sheet1. This function checks the first date at the top "H3" then checks the the job start of the first job on sheet 2 "sheet2!I2" then checks "sheet1!H3" again and compares it to the Job finish "sheet2!V2".

    Once I have the start and the end working I can work on the parts in between job part 2-4 will be clear, job part 5-6 will be yellow also with some text, Job part7-10 will be red and job part 11-finish will be yellow again.
    This is the function I have made in the formatting "=AND(H$3>=Sheet2!$I2,H$3<=Sheet2!$V2)" but I am not sure if this is the best way to do this. I will have to replicate this 2000+ times for a period of 2 years and sheet 2 values will be updated each week. I was thinking I would have to use something different since they are dates but I am not sure if excel will just class all dates of this format as numberic values eg 42012 = 08-01-2015.
    Attachment 372254

  5. #5
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Conditional Formatting from a different sheet to highlight specific ranges

    Sorry Bengy, I've been away and won't be here much over the next few days again either.
    I modified your conditioning slightly and duplicated it 3 more times.

    So the 4 conditions are:-
    If cell is equal to or greater then Job Start AND less then Job Part 2 then yellow fill.
    If cell is equal to or greater then Job Part 5 AND less then Job Part 7 then yellow fill.
    If cell is equal to or greater then Job Part 7 AND less then Job Part 11 then red fill.
    If cell is equal to or greater then Job Part 11 AND less then or equal to Job Finish then yellow fill.

    I think that matches this:- (except I didn't know what colour to start with so I left it yellow)
    Once I have the start and the end working I can work on the parts in between job part 2-4 will be clear, job part 5-6 will be yellow also with some text, Job part7-10 will be red and job part 11-finish will be yellow again.
    I have it looking as far as row 3000. If you go over that you'll have to increase the range.
    I hope this is somewhat close to what you were wanting.
    Attached Files Attached Files

+ 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: 02-26-2014, 12:10 AM
  2. vlookup in conditional formatting to to highlight percentage Ranges
    By Sd100 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2013, 09:19 PM
  3. Conditional Formatting Using Ranges - trying to highlight entire row
    By cwise in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 12:09 PM
  4. [SOLVED] Conditional formatting, highlight multiple of a specific number
    By Mihail-Cosmin in forum Excel General
    Replies: 11
    Last Post: 03-21-2012, 12:16 PM
  5. Conditional Formatting to HIghlight named ranges - error
    By Malte Nuhn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2005, 05:05 AM

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