Checking if % is correct between 2 cells

exceluser9

Active Member
Joined
Jun 27, 2015
Messages
388
Hi There, I have a query, I have a data in column A with description column b with percent and column c with offer. I need a formula in column D2. offer in column c is constant. If C2 is SV% it should check whether B2 percent is matching with the percent mentioned in A2. if matching it should say yes or else no. in case of row 3 it should say no because its not matching. Thanks in advance

[TABLE="width: 248"]
<tbody>[TR]
[TD]Description[/TD]
[TD]Percentage[/TD]
[TD]Offer[/TD]
[/TR]
[TR]
[TD]Pinto 25%[/TD]
[TD]25%[/TD]
[TD]SV%[/TD]
[/TR]
[TR]
[TD]Harry 36%[/TD]
[TD]36%[/TD]
[TD]SV%[/TD]
[/TR]
[TR]
[TD]James 23%[/TD]
[TD]24%[/TD]
[TD]SV%[/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Instead of SV% if I use any other offer like save price it should still say blank but it says false any help?
 
Upvote 0
Can you post the exact formula you are currently using because if you are using the formula kamolga posted it should be saying no not false?
 
Upvote 0
Can you post the exact formula you are currently using because if you are using the formula kamolga posted it should be saying no not false?

That is right it should say "no", not false. I guess your formula looks like =xxx=123
 
Last edited:
Upvote 0
Instead of SV% if I use any other offer like save price it should still say blank but it says false any help?



Code:
=if(and(or(C2="SV%",C2="[COLOR=#0000ff]save price[/COLOR]"),B2=value(right(A2,3))),"yes","no")

This will say yes if C2 = SV% or save price
 
Last edited:
Upvote 0
For a blank on any value but CV% you can use

Code:
=if(C2<>"SV%","",if(and(C2="SV%",B2=value(right(A2,3))),"yes","no"))
 
Upvote 0
Hi there
I have a similar query

Column A Column B
A1. B1
49% Save

I need a formula, if I use save in column B and if its less than 50% it should tell true. If equal or greater than 50% it should tell false. If it's <> save it should remain blank""
 
Upvote 0

Forum statistics

Threads
1,223,990
Messages
6,175,816
Members
452,672
Latest member
missbanana

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