excel - Find criteria in multiple columns, and sum an offset of each matched value -


i need total sum of values multiple columns based on criteria set amount of columns away each value.

for example:

column 1   column2      column3  column4    column5      column6 staff 1                          staff2 status --- location --- cost     status --- location --- cost g          london       500      y          manchester   250 y          birmingham   450      g          scotland     100 

i want sum costs status "g". i've been trying sum, sumif, sumifs, sumproduct, offset , find, i'm not sure of correct combination of functions this.

any appreciated.

thanks

something like:

=sumproduct((a:a="g") * (c:c))+sumproduct((d:d="g") * (f:f))


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -