Help! I have an extremely large and complex Excel spreadsheet with hundreds of columns and rows. The rows are dates, and the columns are item names.
In very simple terms, the spreadsheet looks like this: (Note the problem- more than one column has the same name). Also, both the dates and product titles might change. For example Apples may become Pears, and Pears may become Apples. I want the formula's output to take this into account. In other words, if I rename "Pears" to "Apples" the answer will become 83 instead of 53
Date Apples Pears Apples
01.05.21 2 15 33
10.07.21 3 30 50
15.07.21 6 40 210
Choose Date 11.07.21
Choose Product Apples
Total Sales 53
I just want a formula to give me the answer 53 in the example above. Seems easy? Not for me, and I am really good with Excel..
I have tried all kinds of combinations of Index, xMatch, xlookup, sum, sumif and sumifs, and so on, but I just can't make it work. I could potentially make it work using the "=IF" formula, but that would result in hundreds of nested "IF"s, which is probably more that I, and Excel, want to handle.
This seems at first sight to be such an easy problem to solve, but I have spent hours and can't figure out an easy solution .
Screenshot 2021-07-10 at 12.46.09.png
Bookmarks