Hi Thread -- I’m approaching failure in my quest to write an IF/THEN formula in Excel. Doh! I think my logic is there, but I'm searching for the right commands and order of operations.
IF CELL “A2” MATCHES CELL IN RANGE “DATABASE!A:A”,
AND IN “ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A””, “DATABASE!B$” = 2003,
AND IN “ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A””, “DATABASE!C$” = 1,
THEN, “=DATABASE!E$” OF THE ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A”, ELSE = -99.
Any and all help is appreciated.
For context, the reference database contains 10 years of quarterly earnings data for several thousand ID’s, laid out in panel/repeated measures/long format. An ID only includes quarterly earnings data for quarters in which there is a record of earnings. I am working to transpose this reference database into a wide-format database that indicates: (1) if that ID had any earnings for in each of the 40 possible earning quarters; and (2) if yes, what their earnings were. A sample workbook is provided below.
Bookmarks