Hi to all,
I am a teacher attempting to perform some magic apparently beyond my abilities.
The goal is simple: isolate numeric data found within parentheses in a text string via a formula to then highlight a cell presenting said data within a range. Here is what I have so far:
Excel 2016 (Mac) 32 bit
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]TRUE[/TD]
</tbody>
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]B2[/TH]
[TD="align: left"]=MID([COLOR=rgb(255]A2,SEARCH("(",A2)+1,SEARCH(")",A2)-SEARCH("(",A2)-1[/COLOR])+0[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]C2[/TH]
[TD="align: left"]=([COLOR=rgb(255]MID(A2,SEARCH([COLOR=0)]"(",A2[/COLOR])+1,SEARCH([COLOR=0)]")",A2[/COLOR])-SEARCH([COLOR=0)]"(",A2[/COLOR])-1)+0[/COLOR])>=0.8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
My use of the MID formula tests well, presenting TRUE in C2, and this I thought was what I needed to apply conditional formatting rules for the entire sheet. To be successful, the formula in C2 should provide the right formatting rule to pick out the 80 in A2 and so highlight A2.
However, what doesn't appear in the above sample is the highlighted cell resulting from pasting the formula in C2 into a formatting rule (a rule created with the entire sheet selected, FYI). Such a rule highlights B1 and only B1 (!). [Side note, I used the Forum Tools Add In to insert my cells into this post, but it didn't capture the formatting.] So, my formula fails to pick out target data in A2 and results in a seemingly random, empty cell being highlighted. Any help would be greatly appreciated. Thanks in advance.
I am a teacher attempting to perform some magic apparently beyond my abilities.
The goal is simple: isolate numeric data found within parentheses in a text string via a formula to then highlight a cell presenting said data within a range. Here is what I have so far:
Excel 2016 (Mac) 32 bit
A | B | C | |
---|---|---|---|
C (80%) |
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]TRUE[/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]B2[/TH]
[TD="align: left"]=MID([COLOR=rgb(255]A2,SEARCH("(",A2)+1,SEARCH(")",A2)-SEARCH("(",A2)-1[/COLOR])+0[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]C2[/TH]
[TD="align: left"]=([COLOR=rgb(255]MID(A2,SEARCH([COLOR=0)]"(",A2[/COLOR])+1,SEARCH([COLOR=0)]")",A2[/COLOR])-SEARCH([COLOR=0)]"(",A2[/COLOR])-1)+0[/COLOR])>=0.8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
My use of the MID formula tests well, presenting TRUE in C2, and this I thought was what I needed to apply conditional formatting rules for the entire sheet. To be successful, the formula in C2 should provide the right formatting rule to pick out the 80 in A2 and so highlight A2.
However, what doesn't appear in the above sample is the highlighted cell resulting from pasting the formula in C2 into a formatting rule (a rule created with the entire sheet selected, FYI). Such a rule highlights B1 and only B1 (!). [Side note, I used the Forum Tools Add In to insert my cells into this post, but it didn't capture the formatting.] So, my formula fails to pick out target data in A2 and results in a seemingly random, empty cell being highlighted. Any help would be greatly appreciated. Thanks in advance.