approximately formula by %

Alenmabb

New Member
Joined
Dec 12, 2018
Messages
3
greetings all,

i have fixed numbers on column A
and numbers on column B.


my question is.. how can i using formula that said
1-(if the number on B1 grater than number on A1 by 3%) result will be colored red.

3--(if the number on B1 smaller than number on A1 by 3%) result will be colored red.


2-(if the number on B1 same as number on A1 result will be colored green.


so how can coloring the column B by percentage??? 3 colors!




complex yeah ^^

thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to Mr Excel

Code:
[TABLE="width: 261"]
<tbody>[TR]
[TD="width: 87, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: right"]103[/TD]
[TD="width: 87, align: right"]100[/TD]
[TD="width: 87"]Red[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C6EFCE]#C6EFCE[/URL] , align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: right"]97[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: right"]98[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: right"]102[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]90[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C6EFCE]#C6EFCE[/URL] , align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: right"]102[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]

highlight the column of data that you want to apply the formatting to

In cond formatting enter following formula

=A1=B1
select the colour that you want, tick "Stop if True"

add another rule, enter formula
AND(A10<=B10*1.03,A10>=B10*0.97)
select the colour that you want

Click "OK"
 
Upvote 0
Welcome to Mr Excel

Code:
[TABLE="width: 261"]
<tbody>[TR]
[TD="width: 87, align: right"]103[/TD]
[TD="width: 87, align: right"]100[/TD]
[TD="width: 87"]Red[/TD]
[/TR]
[TR]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="align: right"]97[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]98[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]102[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]90[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="align: right"]102[/TD]
[TD="align: right"]100[/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]

highlight the column of data that you want to apply the formatting to

In cond formatting enter following formula

=A1=B1
select the colour that you want, tick "Stop if True"

add another rule, enter formula
AND(A10<=B10*1.03,A10>=B10*0.97)
select the colour that you want

Click "OK"


thank gaz, appreciated

but the red formula did not work. see the image.

jH4VA18.png

the formula convert to this
="(A10<=B10*1.03,A10>=B10*0.97)"

and i try this also

AND(A10<=B10*1.03,A10>=B10*0.97)

nothing work>




https://imgur.com/a/uYlbLFe

uYlbLFe
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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