Interesting Problem

Jtucker10278

Board Regular
Joined
May 14, 2017
Messages
55
I have been fighting with SUMIFS for the last few days and finnaly figured out WHAT was wrong but I am hoping someone can tell me WHY


When i put together the table below I typed "Week_01" into cell M6 then I grabbed the little corner doohickey and dragged to the right

This Auto enters Week_02 Week_03 Week_04

then I use a SUMIFS formula

=SUMIFS(PNLQTY,PNLWEEK,M$6,PNLEMPLOYEE,$L7)


but when my sumifs formula references cell N6 that was "autocomplete" entered the formula does not work

but if hand type "Week_02" into cell N6 then my formula works


?????????????????????????

LMNOP
6Week _01Week_02Week_03Week_04
7Amanda Holmes18212527
8Chuck Reynolds16700
9Cody Harnish16222710
10Mark Lopez14292528

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
PNL_Numbers

Worksheet Formulas
CellFormula
M7=SUMIFS(PNLQTY,PNLWEEK,M$6,PNLEMPLOYEE,$L7)
N7=SUMIFS(PNLQTY,PNLWEEK,N$6,PNLEMPLOYEE,$L7)
O7=SUMIFS(PNLQTY,PNLWEEK,O$6,PNLEMPLOYEE,$L7)
P7=SUMIFS(PNLQTY,PNLWEEK,P$6,PNLEMPLOYEE,$L7)
M8=SUMIFS(PNLQTY,PNLWEEK,M$6,PNLEMPLOYEE,$L8)
N8=SUMIFS(PNLQTY,PNLWEEK,N$6,PNLEMPLOYEE,$L8)
O8=SUMIFS(PNLQTY,PNLWEEK,O$6,PNLEMPLOYEE,$L8)
P8=SUMIFS(PNLQTY,PNLWEEK,P$6,PNLEMPLOYEE,$L8)
M9=SUMIFS(PNLQTY,PNLWEEK,M$6,PNLEMPLOYEE,$L9)
N9=SUMIFS(PNLQTY,PNLWEEK,N$6,PNLEMPLOYEE,$L9)
O9=SUMIFS(PNLQTY,PNLWEEK,O$6,PNLEMPLOYEE,$L9)
P9=SUMIFS(PNLQTY,PNLWEEK,P$6,PNLEMPLOYEE,$L9)
M10=SUMIFS(PNLQTY,PNLWEEK,M$6,PNLEMPLOYEE,$L10)
N10=SUMIFS(PNLQTY,PNLWEEK,N$6,PNLEMPLOYEE,$L10)
O10=SUMIFS(PNLQTY,PNLWEEK,O$6,PNLEMPLOYEE,$L10)
P10=SUMIFS(PNLQTY,PNLWEEK,P$6,PNLEMPLOYEE,$L10)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Workbook Defined Names
NameRefers To
PNLEMPLOYEE=PNL_Numbers!$E$5:$E$1048576
PNLQTY=PNL_Numbers!$H$5:$H$1048576
PNLWEEK=PNL_Numbers!$C$5:$C$1048576

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
It might help if you showed us the data in your named ranges as what you have are referring to are columns C,E and H and they aren't in the table you have posted.
 
Last edited:
Upvote 0
UPDATE!!!!!!!!

SO yea ..... I had an arrant space as in Week _01

I must have read 5 different forum threads that all said "make sure you don't have any arrant spaces or your formula wont work"

there are no EMOJI's of a guy stabbing himself in the eye with a fork but I feel like that would be appropriate here.
 
Upvote 0
Silly question but the your question implied that the SUMIFS worked for M6... how as surely you were dragging the formula as well?

BTW, you could use the :oops: smiley :biggrin:
 
Last edited:
Upvote 0
thank you for the head banging smiley, i think i will just make that my signature!

So the whole setup is this

I have employees

employees build panels

I want to total how many panels are built in a week

But a WEEK is defined as Sat through Friday

So in my first table i list all 365 days and next to that I manually enter what Week number each day belongs to


1/1/18 Week _01 but i type out Week _01 with extra space and copy it down 6 cells
1/2/18 Week _01
~~~~
~~~~
~~~~
1/6/18 Week_02 now i type Week_02 no extra space and copy it down 6 cells
1/7/18 Week_02

then in my daily input table I just type the date, employee name and panel qty and it looks up and enters the week number based on my first table that had the extra space but only for week _01

Now this is where the 3 days of insanity start


when i type Week_01 No extra space my first SUMIFS formula wont work

so i get mad and copy-paste value the cell that has Week _01 with the extra space

now my first formula works but when i drag the week num to the right it adds an extra space to all the week num

seriously since Tuesday I have been getting up early to work on this project and getting nowhere.

The moral of the story is dont do spreadsheets at 3am
 
Upvote 0
Ah, I understand now and to think how much sleep =LEN(M6) copied across would have saved :ROFLMAO:
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top