helpneeded2
Board Regular
- Joined
- Jun 25, 2021
- Messages
- 110
- Office Version
- 365
- Platform
- Windows
I have 20 columns (AU:BV) in my spreadsheet. These columns contain a number of transactions for a client, and the header contains the name of a location. There are about 150,000 rows of clients.
In a separate sheet, I have a list of the location names. For each location, I want a column that will total all the client transactions at that location, if they client meets certain conditions (i.e.: the value in column AM = "Yes", and the value in AO = "H" or "P".
I am not very experienced at Excel, so I just can't figure out a way to do this.
I believe it would require a sumif, such as =sumif(range,AM:AM,"Yes",AO,{"H","P"}) ?
However since the range (the column to be summed) is going to differ between location names, I don't know how to link the 2 together, aside from making a 2 column table for the location names, and then a text value for the range ("AU"), and then lookup that value and make that the range via an indirect statement -- but I'm sure there is a better way?
In a separate sheet, I have a list of the location names. For each location, I want a column that will total all the client transactions at that location, if they client meets certain conditions (i.e.: the value in column AM = "Yes", and the value in AO = "H" or "P".
I am not very experienced at Excel, so I just can't figure out a way to do this.
I believe it would require a sumif, such as =sumif(range,AM:AM,"Yes",AO,{"H","P"}) ?
However since the range (the column to be summed) is going to differ between location names, I don't know how to link the 2 together, aside from making a 2 column table for the location names, and then a text value for the range ("AU"), and then lookup that value and make that the range via an indirect statement -- but I'm sure there is a better way?