Hi,
I have sample data in columns A to C of the attached file and would like to calculate in cell G2 the total value from columns B and C for the country indicated in cell F2.
So, for example, F2 contains the country “Belgium” so the formula in G2 should return the sum of all values in column C.
The wrinkle is that when I receive the data next month the column headed “Belgium” may not be in column C; it could be in any column from B to Z.
Can someone please suggest a formula to use in G2 that will achieve this?
Thanks!
PS I realise that the data in columns F and G should be further to the right to accommodate data in the columns to Z; I’ve placed it where it is to make the worksheet easier to read.
Bookmarks