The portuguese version has the coma replaced by a semicolon, which led me to this mistake. 😉

I managed to make it work with the correct separator ‘\’.

Thanks for your help!

Kind regards,

Júlio

I’m afraid it’s going to be a little difficult to help you without seeing an actual workbook which, importantly, contains some manually calculated expected results.

Regards

]]>The reason is due to the fact that you have defined *Sheets* as a vertical vector, i.e.

{"Sheet1";"Sheet2";"Sheet3"}

as opposed to a horizontal one, as in my post.

I’m not sure what the horizontal separator is within your version of Excel; for English-language versions it is the comma, though you will need to check for your version.

Hope that helps!

Cheers

]]>I am basically trying to combine the use of both formulas listed here and running into a wall

N(IF(1,MODE.MULT(IF(B1:B10="X",ROW(B1:B10)*{1,1}))))

sum(index)data,n(if{1},c2:d2))))

I have a workbook created has 5 worksheets labeled each day of the week for data. The data is imported from a .txt file for each day.

I am looking to look up and sum a range of values based on user critieria. They choose their day of the week, time in/out, and equipment they were using from dropdown boxes.

The formula needs to take the user input, search the correct tab, correct row, and sum the totals from time in to time out.

My current formula uses vlookup which will be to volatile once data builds up. I can get it to display one individal number(hardcoded to test function) but cannot figure out how to sum the values based on the range of times given by the user. it will look up which tab and pull from the correct day, just cant get the summed ranged.

I think the formulas above will work, I am just stuck on how to tie it all together

=VLOOKUP(E2,INDIRECT(B2&"!$A$2:$Z$600"),17,FALSE)

**example of input table, jobs

Name Day of Week Time In Time Out Station Working Jobs Completed

Jim Monday 14:00 2:00 161 MODULO BLK 1 8

Sue Monday 17:00 7:00 175 MODULO GEN 2 23

***data sample from other tab.

STATION 8:00 9:00 10:00 11:00

134 MODULO BLK 3 12 9 73 49

149 MOD LASER 2 109 7 11 20 14

140 OPTECH TAPE 1 48 77 66

Excelent article and right into my needs as I was just needing something like this.

I am trying to make some changes though, but I get the error ‘#VALUE’.

The error seems to come from the bit

TRANSPOSE(ROW(INDIRECT("1:"&COUNTA(Sheets)))

It is probably some silly mistake, but I cannot figure it out.

The file is located here:

https://www.dropbox.com/s/dlz3z9vgqqg8tl0/List.xlsx?dl=0

to help understand what’s going on.

Thanks,

Julio

What error are you getting?

I’d also strongly recommend not using entire column references within such a formula, or else Excel will struggle to process it. Use e.g. H1:H1000, K1:K1000, etc., or some suitably sized ranges instead.

Regards

]]>I’m trying to count unique values of column “A” base on my criteria but getting error:-

=SUMPRODUCT(IF(FREQUENCY(IF(Export!H:H={"Flex w/o filters","Flex with filters"},IF(Export!K:K="18",IF(Export!J:J="H2",MATCH(Export!A:A,Export!A:A,0)))),ROW(Export!A:A)-MIN(ROW(Export!A:A))+1),1))

Could you please help me with this?

]]>Glad to hear it! You’re most welcome!

Cheers

]]>=SUM(COUNTIFS(B2:B14,{"Male","Female"},C2:C14,"Sea lion"))

and get EXACTLY what I need. This way, the formula’s only half as monstrous. Thank you so much!!

]]>Are those blank cells otherwise populated with a text or numeric entry? If text, you can simply wrap the given formulas in the T function, i.e.:

=IF(ROWS($1:1)>$G$1,"",T(INDEX(INDIRECT("'"&INDEX(Sheets,MATCH(TRUE,Arry1>=ROWS($1:1),0))&"'!A2:F10"),SMALL(IF(INDIRECT("'"&INDEX(Sheets,MATCH(TRUE,Arry1>=ROWS($1:1),0))&"'!D2:D10")="Y",ROW(INDIRECT("1:"&ROWS($A$2:$F$10)))),IFERROR(1+ROWS($1:1)-LOOKUP(ROWS($1:1),1+Arry1),ROWS($1:1))),COLUMNS($A:A))))

Regards

]]>