+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting to show a numbers of cells based on a lookup value

  1. #1
    Registered User
    Join Date
    01-16-2019
    Location
    Cincinnati, OH
    MS-Off Ver
    2016
    Posts
    6

    Conditional Formatting to show a numbers of cells based on a lookup value

    Hi guys,

    Need your help with something. I have a list of movements, and I am trying to show how each of these would be handled based on the capacity of the tractor that will be positioning the items to another location.
    The capacity of this item is 2 objects at a time, so depending on how many I receive it will take X runs to finish unloading the truck. The trailer type determines the total capacity i.e 53" = 22 pallets, which means this will require 11 runs to unload the truck completely.
    What I want to do, is based on the equipment type, populate the rows to show how each run would happen. So if the equipment type is 53' I want to populate 11 rows in the "pallet data" tab with the MIA information (Origin and Arrival Time).
    If the equipment type is 24' I want it to only populate 6 rows and so on.
    I have seen this done somewhere with conditional formatting, but have not been able to find a tutorial or figure it out myself.

    I've attached the file with initial data.

    Please let me know if you have any ideas on how I can approach this.
    Thank you!
    Attached Files Attached Files

  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,791

    Re: Conditional Formatting to show a numbers of cells based on a lookup value

    I don't see how you could do this with conditional formatting - that just formats cells according to some criteria.

    Do you want to expand each row you have by the number of rows shown in column G?


    Pete

  3. #3
    Registered User
    Join Date
    01-16-2019
    Location
    Cincinnati, OH
    MS-Off Ver
    2016
    Posts
    6

    Re: Conditional Formatting to show a numbers of cells based on a lookup value

    Yes, but I want the details in a different sheet. Where I can update just the origin locations and flights and the rest will populate.

  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,791

    Re: Conditional Formatting to show a numbers of cells based on a lookup value

    In the attached file I put zero in cell H4 and this formula in H5:

    =G5+H4

    which when copied down just gives a cumulative count of the number of rows.

    Then in a new sheet (Sheet1), where I have added your titles in row 1, I put this formula in A2:

    =IF(ROWS($1:1)>MAX(Parameters!$H:$H),"",(INDEX(Parameters!B$5:B$9,MATCH(ROWS($1:1)-1,Parameters!$H$4:$H$9))))

    This can be copied across, although you will need to change the formatting in B2. Then you can copy the 4 formulae down as far as you need to (until you start to get blanks).

    Hope this helps.

    Pete
    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. conditional formatting to show blank cells
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2018, 09:25 AM
  2. [SOLVED] Conditional Formatting based on Lookup
    By nironto in forum Excel General
    Replies: 5
    Last Post: 03-10-2016, 02:31 AM
  3. [SOLVED] 2 highest numbers in conditional formatting and if ties? only need show 1 number
    By micope21 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-28-2016, 12:28 AM
  4. Replies: 5
    Last Post: 11-14-2015, 10:20 AM
  5. Conditional Formatting based on a Lookup
    By LEEPRIESTENATOR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 12:24 AM
  6. Lookup based on conditional formatting?
    By himey77 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2011, 01:47 PM
  7. Use conditional formatting to show + prefix for numbers?
    By gatsby692 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2008, 01:21 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