Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using excel to simulate some hardware control logic for a processor (for a class). I am only using four formulae: If(), Or(), And() and string operations MID(). I am trying to convert these nested excel formulas into C/Java style syntax. eg:



if((A1 == 1 && B1 == 2)||(C1 == 1 && D1 == 2))

Does excel have any built in converters for such purpose?

I know that it is possible using complex regex, but I much rather find a simpler approach for this issue.

share|improve this question
This might help, from StackOverflow - Convert Spreadsheet Formulas to Java. – rishimaharaj May 23 '12 at 12:05

As you specify "built in" the answer almost certainly seems to be 'No'.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.