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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I checked KAMOLGA's answer and it appears to do what you are asking...

( it seems that you do have to have the NUMBERVALUE part )

Look it over a bit more, maybe copy and paste in a response what you are typing...
 
Upvote 0
The formula allows for that...it should work.

Copy the formula that you typed in, and paste it into a message to us...
 
Upvote 0
Code:
=if(and(C2="SV%",B2=numbervalue(right(A2,3))),"yes","no")

I am not sure numbervalue() is mandatory


This is what i have tried in D2 - =IF(AND(C2="SV%",B2=numbervalue(RIGHT(A2,3))),"yes","no")

it says #NAME?

Also tried this =IF(AND(C2="SV%",B2=25*(RIGHT(A2,3))),"yes","no")

It says no for everything

Am i doing any thing wrong, please help
 
Upvote 0
Your second attempt is always going to say "no" because you are times-ing the column "A" percent by 25.

Your first example appears to be typed in, not copied. The words "numbervalue" are in lower case, they would have been upper case.

I suggested that you copy it because it must be a small detail missing...

It will be a few hours before I can get back to a computer...
 
Upvote 0
This is what i have tried in D2 - =IF(AND(C2="SV%",B2=numbervalue(RIGHT(A2,3))),"yes","no")

it says #NAME?

Also tried this =IF(AND(C2="SV%",B2=25*(RIGHT(A2,3))),"yes","no")

It says no for everything

Am i doing any thing wrong, please help


If it says "Name" it rather means you forgot the " " for SV% / yes / no or your version of Excel does not support numbervalue function (I do not know anything about this as I barely use it)...but the function value works for all my clients.


So this one
Code:
=if(and(C2="SV%",B2=value(right(A2,3))),"yes","no")
, I hope, should work (they both work on mine)


Note that for this =IF(AND(C2="SV%",B2=25*(RIGHT(A2,3))),"yes","no") to have a chance to work it should be 1 after A2, as you want to multiply 25 by the first caracter on the right of A2 ->% : right(A2,3) means you take 3 caracters, so 25*25%
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,986
Messages
6,175,788
Members
452,670
Latest member
nogarth

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