bit of Excel that may be useful to people.
I often need to find the nearest EIA E12 or E24 value (that is, stock resistor or capacitor value) to a calculated result for a circuit design.
Here is a self-contained Excel formula for the job.
For E12:
=(10^INT(LOG10(inputvalue)))*CHOOSE(ROUND(MOD(LOG10(inputvalue),1)*12,0)+1,1,1.2,1.5,1.8,2.2,2.7,3.3,3.9,4.7,5.6,6.8,8.2,10)
For E24:
=(10^INT(LOG10(inputvalue)))*CHOOSE(ROUND(MOD(LOG10(inputvalue),1)*24,0)+1,1,1.1,1.2,1.3,1.5,1.6,1.8,2,2.2,2.4,2.7,3,3.3,3.6,3.9,4.3,4.7,5.1,5.6,6.2,6.8,7.5,8.2,9.1,10)
I'll leave it as an exercise for the student to do versions for E48, E96, and E192.
--
You received this message because you are subscribed to the Google Groups "Robots & Dinosaurs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sydney-hackspa...@googlegroups.com.
To post to this group, send email to sydney-h...@googlegroups.com.
Visit this group at http://groups.google.com/group/sydney-hackspace.
For more options, visit https://groups.google.com/d/optout.
For E12:
=(10^INT(LOG10(inputvalue)))*CHOOSE(ROUND(MOD(LOG10(inputvalue),1)*12,0)+1,1,1.2,1.5,1.8,2.2,2.7,3.3,3.9,4.7,5.6,6.8,8.2,10)
I often need to find the nearest EIA E12 or E24 value (that is, stock resistor or capacitor value) to a calculated result for a circuit design.