Let's say I have three columns of data. Column 1 tells me the originating city, column 2 tells the destination city, and column 3 tells the price of the trip. Let's say I want to sum up all the prices for the trip from city X to city Y. How can I loop that?
So, once I have a specific origin and destination pair, how can I search the rest of the columns to see if there's a match, and add the price of that row to the existing price?
So, once I have a specific origin and destination pair, how can I search the rest of the columns to see if there's a match, and add the price of that row to the existing price?
Comment