Comparing long numbers.

mr_samd

New Member
Joined
Jan 17, 2018
Messages
9
I have a test which is to see if people can correctly caluclate Log10s propperly.
I have excel working it out in hidden cells. I want a cell to say "Pass" if they type the correct answer in or "Fail" if not.
I have done this ( =IF(A1=A2,"PASS","FAIL")) and it all works, as long as you type in all the decimal points. This is obviously a pain for users.
Is there a way i can get it to "pass" if they only type up to, say 4 decimal points?

Any help would be appreciated!

Thanks

Sam
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try this:
Code:
[COLOR=#333333]=IF(ROUND(A1,4)=ROUND(A2,4),"PASS","FAIL"))[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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