Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2016, 08:11 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default Conditional formating

I have multiple cells in a table containing concatenated data ( 2/8 ) ranging from H:AL.
I would like to be able to highlight the cells if the numbers added together are greater than a number in column D

Thanks in advance
Reply With Quote
  #2  
Old 12-01-2016, 09:51 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Please attach a sample sheet of your data.

What do you mean the cells contain "concatenated data"?

So let me get this straight, you want to highlight the entire range H:AL if the sum of those cells is greater than D. Is that right?
Reply With Quote
  #3  
Old 12-01-2016, 10:00 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

As you will see in the sample i have found a way by adding a formula into the actual cell that returns a addtional symbol to the cells if the added values are above the critriea . This meaning i can conditional format with a strring search.

I dont like how lengthy the formula is and am open to suggesttions
Attached Files
File Type: xlsx Sample.xlsx (20.7 KB, 7 views)
Reply With Quote
  #4  
Old 12-01-2016, 10:04 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

i used CONCATENATE to show 2 values in the same cell example ( 2 / 4 ) but i wish to add the 2 number together and checkvaule agaisnt another cell
Reply With Quote
  #5  
Old 12-01-2016, 10:18 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

You want all the cells where the two concatenated numbers are greater than D when summed together. Is that right?

So in your sample file, just those cells which you have denoted with the single quote on row 3, right? And that single quote is not necessary for your purposes once we figure this out correctly, right?
Reply With Quote
  #6  
Old 12-01-2016, 10:26 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

correct the single quote is only for a search string to conditional format
Reply With Quote
  #7  
Old 12-01-2016, 10:37 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

How about this? I formatted all your concatenated data cells to text. I also copy and pasted text only all your data because it was looking for a file on your desktop to get data from. So just look at the conditional formatting and replicate on your sheet if you it suits your needs.

Basically, the conditional format equation is:

Code:
=LEFT(H4,1)+RIGHT(H4,1)>$D4
Of course, this will only work if you only have single digit concatenation. If that assumption is not valid, then we can modify the equation to account for it:

Code:
=LEFT(H4,FIND("/",H4)-1)+RIGHT(H4,LEN(H4)-FIND("/",H4))>$D4
Attached Files
File Type: xlsx Sample.xlsx (16.1 KB, 6 views)
Reply With Quote
  #8  
Old 12-01-2016, 10:44 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

yes i have tried to use this system (i also tried to use this format to and the single quote into the cell but that caused a circular ref).How can this formula be put into a conditional format so it checks each cell by its only reference?
Reply With Quote
  #9  
Old 12-01-2016, 10:48 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Select the entire range and put the formula in. It should apply accordingly.
Reply With Quote
  #10  
Old 12-01-2016, 10:58 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

this is the bit thats confussing me. When i chose conditional format by formula and input (=LEFT(H4,FIND("/",H4)-1)+RIGHT(H4,LEN(H4)-FIND("/",H4))>$D4) as the criteria , when i change which cells it applies to ( columns H:AL) all cells are looking to H4 for the result?
Reply With Quote
  #11  
Old 12-01-2016, 11:13 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

So long as you have properly used the $ as I have to only anchor column D as absolute, the formula should apply properly even if it doesn't reflect it in the dialog.

If you have a question as to whether it's working, test it out by changing some of the values in D in the lower rows.
Reply With Quote
  #12  
Old 12-01-2016, 11:29 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

just tried and not having any sucess. Also when i try it in a single cell (H4) it highlights the cell breifly when i lower d4 but then returns to no fill?
Reply With Quote
  #13  
Old 12-01-2016, 11:32 AM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Please attach your sheet with the new formatting.
Reply With Quote
  #14  
Old 12-01-2016, 11:46 AM
MJS16 MJS16 is offline Conditional formating Windows 7 64bit Conditional formating Office 2016
Novice
Conditional formating
 
Join Date: Dec 2016
Posts: 9
MJS16 is on a distinguished road
Default

sample as requested
Attached Files
File Type: xlsx Sample.xlsx (20.8 KB, 8 views)
Reply With Quote
  #15  
Old 12-01-2016, 12:01 PM
gebobs gebobs is offline Conditional formating Windows 7 64bit Conditional formating Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Unless I'm not understanding what you are trying to do, it seems to be working fine. When D6 is 4, no concatenated cells in row 6 are highlighted. When I change it to 3, all of the 0/4 cells become highlighted. Nothing happens in to the cells in any other row. Likewise if I change the D value in any other row.

Of course, you cannot have the single quotes in the concatenated fields so I'm not quite sure why you still have those.

And you may need to format the concatenated cells as text. Excel might think they are dates.
Reply With Quote
Reply

Tags
concatenated data



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formating MaineLady Excel 2 10-30-2016 02:08 PM
Conditional formating Conditional Formating Aseren Excel 14 02-18-2016 01:05 PM
Conditional formating Copying Conditional Formating lynette Excel 2 03-06-2015 11:53 AM
Conditional Formating MaineLady Excel 1 11-05-2014 06:37 PM
Conditional formating more Conditional Formating princeofsadness Excel 2 09-05-2011 02:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft