Convert Excel formulas to SQL language automatically

D N 1 Reputation point
2022-09-12T02:38:39.77+00:00

Is it possible convert Excel formula to SQL?

I mean like this site for convert VB.NET to C#.

I have to write lots of complicated excel function in format of SQL function like this:

=VLOOKUP(D4,Table25,MATCH(ِDATA!AB$3,Table25[#Headers],0))*IF(OR(E4="W",E4="KW"),(2*((G4*VLOOKUP(D4,Table25,3,0))*IF(D4="COF",SUM(H4,I4),MAX(H4,I4))*VLOOKUP(D4,Table25,2,0))+2*(F4*IF(D4="COF",SUM(H4,I4),MAX(H4,I4))*VLOOKUP(D4,Table25,2,0))),0)  

and it is very hard and time consuming.

Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | Visual Basic for Applications
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. Olaf Helper 47,626 Reputation points
    2022-09-12T06:03:42.35+00:00

    Is it possible convert Excel formula to SQL?

    No, only re-writing them manually. Excel formula and SQL are more then just different.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.