+ Reply to Thread
Results 1 to 11 of 11

conditional format lowest number in a range but some numbers divided by 2

  1. #1
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    conditional format lowest number in a range but some numbers divided by 2

    I am looking for a way to color the lowest number in a group, but some of those numbers are first divided by two.

    2 2
    3 3

    Say I am assembling bicylces and row 1 = frames, row 2 = wheels. I want to show what I run out of first when I want to build bikes. I have 2 frames, 3 wheels so I want to color the cells showing a 3 in red.

    only that formula does not work, is there a way to have this work?

    edit: removed formula as it was incorrect and caused confusion
    Attached Files Attached Files
    Last edited by TtNl; 09-29-2022 at 08:51 AM. Reason: remove formula

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,936

    Re: conditional format lowest number in a range but some numbers divided by 2

    You need to use two separate conditional formatting rules - it is unclear if your data is in rows (as shown) or in columns (as your formula implies)

    Anyways, the first CF (applied to A1:A2) is

    =A1=MIN($A$1:$A$2,$B$1:$B$2/2)

    The second CF (applied to B1:B2) is

    =B1/2=MIN($A$1:$A$2,$B$1:$B$2/2)


    Or for A1:B1

    =A1=MIN($A$1:$B$1,$A$2:$B$2/2)

    The second CF (applied to A2:B2) is

    =A2/2=MIN($A$1:$B$1,$A$2:$B$2/2)
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: conditional format lowest number in a range but some numbers divided by 2

    I messed around with this a bit more and I'm sure the answer is in here, I just can't get it to work.

    I included a small example excel in the original post, would be very grateful if someone could make that work

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,396

    Re: conditional format lowest number in a range but some numbers divided by 2

    Please enter in column A the numbers needed per bike and try this formula and copy across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: conditional format lowest number in a range but some numbers divided by 2

    Hi Hans,

    I understand what you did but when I use that formula you typed, I get a "value" error message. Even clicking inside it and then pressing enter without changing anything already gives the error.

    In the end it doesn't matter though as I wasn't looking for a solution to calculate the total number of bikes that are made, I was looking for a way to color the cell(s) that are the first resource you run out of when producing bikes. See the red cells in my example. I am looking for a way to conditionally format the cells so that the red colored cells are colored automatically.

    I'm pretty sure Bernie got my question right but I can't get the solution to work.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,396

    Re: conditional format lowest number in a range but some numbers divided by 2

    Have you checked that all fields in the range are numeric or empty?
    And did you enter in the first column the numbers needed per bike (only the number without text)?

    Or add the workbook that contains the error
    Last edited by HansDouwe; 09-29-2022 at 11:42 AM.

  7. #7
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: conditional format lowest number in a range but some numbers divided by 2

    I have since learned that the {} brackets that I see in your workfile are due to us working in different excel versions and are related to how array formulas changed and the use of Control Shift Enter.

    Still, the question I had remains. Looking to color the cells that I now colored in manually with conditional formatting.

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,396

    Re: conditional format lowest number in a range but some numbers divided by 2

    Please try this CF-rule applies to $C$3:$H$8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: conditional format lowest number in a range but some numbers divided by 2

    Awesome, thats exactly what I was looking for, thanks so much!

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,396

    Re: conditional format lowest number in a range but some numbers divided by 2

    You're welcome. Thanks for the feedback. I'm glad the formula works the way you want it to.

    Please consider adding reputation to the answers of any helpers you think deserve.
    If you want, click * add reputation at the bottom left of the answer(s)

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,396

    Re: conditional format lowest number in a range but some numbers divided by 2

    Thx for the rep .

+ 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. [SOLVED] Using Conditional format to high range of numbers
    By Karnik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2016, 07:50 AM
  2. [SOLVED] Conditional Format Lowest Value
    By Adam Schaefer in forum Excel General
    Replies: 2
    Last Post: 02-27-2015, 04:11 PM
  3. Paste a range X number of times based on InputBox Value divided by 4
    By kierstin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:22 AM
  4. Conditional Format Top 5/Lowest 5
    By Weasel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2009, 02:40 PM
  5. Excel 2007 : Finding Lowest Number in a range of numbers.
    By stevenson08 in forum Excel General
    Replies: 7
    Last Post: 11-11-2008, 08:19 AM
  6. Conditional Format-make bold the lowest value in a range
    By uplink600 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2007, 07:47 AM
  7. numbers in cells are automatically divided by 100. Not a format s.
    By Surveyor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2005, 01:06 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