Sumifs with a dynamic list criteria

Steel Contributor

Hi

 

I am trying to use Sumifs ehre one of the criteria is from a dynamic list. It fills down the correct number of rows, but only choose the first item from the dynamic list. 

 

Command: 

=SUMIFS(Tabell1[Omsetning];Tabell1[Selger];Selgere!B20#;Tabell1[Kvartal];2;Tabell1[Produkt];Selgere!$B$16)

 

The list starting in B20 is buildt with Sort(Unic function.

sumifs dynamic.PNG

All numbers is for "Hansen" Any solution for this?

 

Best Regards

- Geir

 

9 Replies

@Geir Hogstad 

Geir, perhaps you may illustrate on the sample file, not on screenshot what's wrong. Here it looks like works:

image.png

File is attached.

@Geir Hogstad 

 

Looks fine syntactically to me. Can you upload a workbook?

 

Regards

@Geir Hogstad 

I update criteria with spill, the same

 

image.png

Hi @Sergei Baklan please find attached a copu of the Worksheet, where I try to use an dynamic list,instead of fixed values.

Thank you for your interest @Jos_Woolley please find an example in the thread here.

 

- Geir

@Geir Hogstad 

I see. Please remove sheet name from the spill reference

image.png

when it'll be like

image.png

I do one by one it's the same result.

The function is correct @Sergei Baklan :) I did a double check with fixed values. And they do have the same values. Sorry. I used RANDARRAY to generate numbers. And I did not think it would be some identical numbers there, for the same product.

 

Thank you for helping.

 

- Geir

You are correct @Jos_Woolley the syntax is fine. It works as it is.

 

Thank you.

 

- Geir

@Geir Hogstad , you are welcome

To be more clear, you may use Selgere!B20# or B20#, result will be exactly the same. Just for the formula in first case only first cell will be highlighted in the spill and in second case entire spill.