#1
|
|||
|
|||
Help with IF or ELSE Formulas
Hi all I am trying to do something that I am having a hard time figuring out. I have attached a spreadsheet I am creating. Basically it is an Inspection report for a machine shop. I want to be able to enter Dimensions from a Blue print in the first column and based on how many Decimals it has, it will auto fill the tolerance zones upper and lower limits. I was able to get one to work but I can't seem to get the other to work.
My formulas is this: =IF(B11>".00",B11-I6,B11-I7) I would like it to read more or less, =IF(B11=".00",B11-I6,=IF(B11=".000",B11-I7)) Basically, if it is a two place decimal, I want it to subtract the value from I6 and if it is a three place decimal to subtract the value from I7. Can anyone help please? Thanks, Todd |
#2
|
|||
|
|||
Hi
You can determine by the entered decimals in B11 the calculation to be done. Like this: =IF(LEN(B11)-FIND(".",B11,1)>2,B11-I7,B11-I6) |
#3
|
|||
|
|||
Thank you! It worked great!
|
#4
|
|||
|
|||
Now, is there a way to add a third line?
So for 1, 2 or 3 decimal places? |
#5
|
|||
|
|||
This should do it for all, I think.
Lower: =B11-OFFSET($I$4,LEN(B11)-FIND(".",B11),0) Upper: =B11+OFFSET($I$4,LEN(B11)-FIND(".",B11),0) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with formulas please | paul_pearson | Excel | 0 | 03-20-2013 06:51 AM |
Save Formulas | bondimedical3 | Word | 7 | 04-25-2012 02:02 AM |
Formulas in a different language | poobear | Excel | 2 | 09-18-2011 04:35 AM |
Help! 'SUMIF' Formulas | dave1372 | Excel | 2 | 09-08-2011 07:05 AM |
IF Formulas | mizzamzz | Excel | 1 | 07-08-2010 02:32 AM |