I have an Excel Workbook that uses IF(OR statements to sum up amounts for accounts on our Visa Statements. We have a Visa Statement that the individual lines are coded to individual GL account codes. Row7 could be coded to acct26, Row8 could be coded to
acct54, Row9 could be coded to acct26, etc... The spreadsheet was designed by a predecessor and I don't quite understand the formatting of the IF(OR statement. It was designed to SUM (in rows 35-59) the amounts based on the account# in Rows7-31
The spreadsheet allows for 25 lines of entries with amounts(column D) and accounts(column E). The amounts(D7:D31) are summed up in the bottom section based on the account(E7:E31).
Row E35 is the first cell to contain an account. formula reads =E7.
Row E36 formula reads =IF(OR(E8=E7),0,E8)
Row E37 formula reads =IF(OR(E9=E7,E9=E8),0,E9)
Row E38 formula reads =IF(OR(E10=E7,E10=E8,E10=E9),0,E10) this continues down thru Row E59 where the formula reads
=IF(OR(E31=E7,E31=E8,E31=E9,E31=E10,E31=E11,E31=E12,E31=E13,E31=E14,E31=E15,E31=E16,E31=E17,E31=E18,E31=E19,E31=E20,E31=E21,E31=E22,E31=E23,E31=E24),0,E31)
I understand the formula in E35, but from there, I am lost. Can someone explain in English or direct me to documentation that explains what the format is and how to actually read this? How would Row 37 actually read in pseudo code.
I have read the blogs on IF statements and OR statements, but they don't quite cover these.
I was in software design using COBOL, Assembler, and CICS, C# and VB.NET for 34 years, but this stumps me.