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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try this:
Code:
[COLOR=#333333]=IF(ROUND(A1,4)=ROUND(A2,4),"PASS","FAIL"))[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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