Coloring rows based on identical dates

HowToDoIt

New Member
Joined
Jan 2, 2024
Messages
10
Office Version
  1. 2019
Platform
  1. MacOS
I have a spreadsheet with several entries/rows on the same date, 10/10/24, for example. I'd like all rows on that date to be colored blue. Then I want the next rows on a subsequent date, to be yellow. The next three or more rows of the date following that should revert to blue, and all the rows with the date after that to go back to yellow and follow that alternating pattern of blue to yellow for the full length of the sheet. You'd have, say, three blue rows followed by three or more yellow rows followed by several blue rows followed by several yellow rows. Is that possible through, maybe, the conditional formatting feature or by yet some other approach? A simple "no" will do, but if the answer is yes then please tell me how to do it. I'd be most appreciative. I don't use Excel very often, so it's just not an issue I've ever previously dealt with.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Board!

Questions like this often make a lot more sense when you can show us a sample of your data and expected results, so we can see exactly what the data you are working with looks like and what you want your results to look like. Can you post those?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Does your Data look something like this?
Book1
ABCDEF
1Some HeaderSome HeaderSome HeaderSome HeaderSome HeaderSome Header
210/10/2023
3Some DataSome DataSome DataSome DataSome Data
4Some DataSome DataSome DataSome DataSome Data
5Some DataSome DataSome DataSome DataSome Data
610/20/2023
7Some DataSome DataSome DataSome DataSome Data
8Some DataSome DataSome DataSome DataSome Data
9Some DataSome DataSome DataSome DataSome Data
10Some DataSome DataSome DataSome DataSome Data
1110/30/2023
12Some DataSome DataSome DataSome DataSome Data
13Some DataSome DataSome DataSome DataSome Data
Source Sheet 1
 
Upvote 0
Thanks. What I'm trying to do is obtain my blood pressure in the morning, mid-day, and in the evening before bed. We're trying to get my BP meds pressure adjusted. Color coding by date would help. I'll post the spreadsheet image. I'm on a Mac, and the xl2bb file doesn't seem to install. The screeshot I created on my computer was too large to upload.
 
Upvote 0
Does your Data look something like this?
Book1
ABCDEF
1Some HeaderSome HeaderSome HeaderSome HeaderSome HeaderSome Header
210/10/2023
3Some DataSome DataSome DataSome DataSome Data
4Some DataSome DataSome DataSome DataSome Data
5Some DataSome DataSome DataSome DataSome Data
610/20/2023
7Some DataSome DataSome DataSome DataSome Data
8Some DataSome DataSome DataSome DataSome Data
9Some DataSome DataSome DataSome DataSome Data
10Some DataSome DataSome DataSome DataSome Data
1110/30/2023
12Some DataSome DataSome DataSome DataSome Data
13Some DataSome DataSome DataSome DataSome Data
Source Sheet 1
No, but that certainly looks like a good idea.
 
Upvote 0
Welcome to the Board!

Questions like this often make a lot more sense when you can show us a sample of your data and expected results, so we can see exactly what the data you are working with looks like and what you want your results to look like. Can you post those?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
So I booted Parallels and then Excel in Windows. It looks very different. I did manage to get the XL2BB installed, and I clicked on it. It sent me back to this forum. Now I'm trying to get my spreadsheet image uploaded (or whatever the XL2BB is) and can't seem to figure out that part of it.
Welcome to the Board!

Questions like this often make a lot more sense when you can show us a sample of your data and expected results, so we can see exactly what the data you are working with looks like and what you want your results to look like. Can you post those?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Welcome to the Board!

Questions like this often make a lot more sense when you can show us a sample of your data and expected results, so we can see exactly what the data you are working with looks like and what you want your results to look like. Can you post those?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
bpm_readings_export_26122023_105534.csv
ABCDEF
1DateTimeSystolic (mm Hg)Diastolic (mm Hg)Heart Rate (bpm)Risk Category Index (American Heart Assoc. 2017)
212/26/2310:05 AM1137979Normal
312/25/236:56 AM1479270Stage 2
412/24/2310:38 PM1488677Stage 2
512/24/2310:04 AM1619372Stage 2
612/24/238:13 AM1689272Stage 2
712/23/238:05 AM1339277Stage 2
812/23/238:04 AM1508476Stage 2
912/23/236:21 AM17710170Stage 2
1012/22/235:37 PM1327784Stage 1
1112/22/2311:24 AM1227784Elevated
1212/21/239:40 PM1388585Stage 1
1312/21/231:48 PM1097388Normal
1412/21/239:27 AM1188183Stage 1
1512/21/237:10 AM1508772Stage 2
1612/20/239:31 PM1207580Elevated
1712/20/232:43 PM947085Normal
1812/20/231:19 PM877084Normal
1912/20/239:21 AM1097290Normal
2012/20/238:36 AM1238282Stage 1
2112/20/238:32 AM1359074Stage 2
2212/20/238:31 AM1227776Elevated
2312/19/239:49 PM1628770Stage 2
2412/19/239:52 AM17410265Stage 2
2512/18/238:31 PM1649672Stage 2
2612/18/232:26 PM1639570Stage 2
2712/18/2311:04 AM1739668Stage 2
2812/15/239:26 PM18810466Crisis
2912/15/237:28 AM1709361Stage 2
3012/14/2312:07 PM17910955Stage 2
3112/14/2311:32 AM17810456Stage 2
3212/14/2311:27 AM1789657Stage 2
3312/13/2312:56 PM1619062Stage 2
bpm_readings_export_26122023_10
 
Upvote 0
Welcome to the Board!

Questions like this often make a lot more sense when you can show us a sample of your data and expected results, so we can see exactly what the data you are working with looks like and what you want your results to look like. Can you post those?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
So I booted Parallels and then Excel in Windows. It looks very different. I did manage to get the XL2BB installed, and I clicked on it. It sent me back to this forum. Now I'm trying to get my spreadsheet image uploaded (or whatever the XL2BB is) and can't seem to figure out that part of it.
 
Upvote 0
It looks like you successfully managed to post your image up in post #7, though I do not see any color coding.
I would really like to see what you expect your output to look like, so we can get a full picture of how this should be working.
 
Upvote 0
It looks like you successfully managed to post your image up in post #7, though I do not see any color coding.
I would really like to see what you expect your output to look like, so we can get a full picture of how this should be working.
I would like the color coding to resemble something like the image below: all readings on a particular date being the same color followed by another color for a subsequent date. It will make it easier to see how the readings vary throughtout the day and determine whether, for example, the readings are consistently lower at the start, middle, or end of the day.

Sorry for my delayed response.

12/22/2311:24 AM1227784Elevated
12/21/239:40 PM1388585Stage 1
12/21/231:48 PM1097388Normal
12/21/239:27 AM1188183Stage 1
12/21/237:10 AM1508772Stage 2
12/20/239:31 PM1207580Elevated
12/20/232:43 PM947085Normal
12/20/231:19 PM877084Normal
12/20/239:21 AM1097290Normal
12/20/238:36 AM1238282Stage 1
12/20/238:32 AM1359074Stage 2
12/20/238:31 AM1227776Elevated
12/19/239:49 PM1628770Stage 2
12/19/239:52 AM17410265Stage 2
12/18/238:31 PM1649672Stage 2
12/18/232:26 PM1639570Stage 2
12/18/2311:04 AM1739668Stage 2
12/15/239:26 PM18810466Crisis
12/15/237:28 AM1709361Stage 2
12/14/2312:07 PM17910955Stage 2
12/14/2311:32 AM17810456Stage 2
12/14/2311:27 AM1789657Stage 2
12/13/2312:56 PM1619062Stage 2
 
Upvote 0

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top