Here is my syntax for summing looked up fields. What it is doing is looking
up all downtime minutes in the Header sheet for shift 1. But I get #REF as
the answer. Can someone please help? A57 hold 1 for the shift number,
B1:B700 holds the shift number in the data and A:FS is the enitre data set.
=SUM(INDEX(Header!A:FS,MATCH(A57,Header!B1:B700,0) ))
--
-----
Thank you,
LizSo, every time a 1 appears in B1:B700 you want to sum everything from column
A to column FS? That means you want to sum the 1s in column B, too?
Doesn't sound reasonable. How about a clearer explanation of what you want
to accomplish, please?quot;Liz Steffenquot; wrote:
gt; Here is my syntax for summing looked up fields. What it is doing is looking
gt; up all downtime minutes in the Header sheet for shift 1. But I get #REF as
gt; the answer. Can someone please help? A57 hold 1 for the shift number,
gt; B1:B700 holds the shift number in the data and A:FS is the enitre data set.
gt;
gt; =SUM(INDEX(Header!A:FS,MATCH(A57,Header!B1:B700,0) ))
gt;
gt; --
gt; -----
gt; Thank you,
gt; Liz
gt;
Gotcha. Here is sample data.
Col A Col B Col C Col D Col E
DtHdrDateShiftAvailMinOper_BreaksOper_StickerMach
5/5/2006248000
5/5/200614802414
5/4/20061480240
5/4/20062480120
5/3/20061480200
4/28/20061480200
4/28/20062480200
4/27/20061480200
4/27/20062480200
4/26/20061480200
What I am trying to do is a year-to-date sum of each shift for each
category, like Oper_Breaks. I have the data in one sheet and use INDEX/MATCH
to get each date's information, but can't figure out how to get year-to-date
or month-to-date.
-----
Thank you,
Liz
quot;Duke Careyquot; wrote:
gt; So, every time a 1 appears in B1:B700 you want to sum everything from column
gt; A to column FS? That means you want to sum the 1s in column B, too?
gt;
gt; Doesn't sound reasonable. How about a clearer explanation of what you want
gt; to accomplish, please?
gt;
gt;
gt; quot;Liz Steffenquot; wrote:
gt;
gt; gt; Here is my syntax for summing looked up fields. What it is doing is looking
gt; gt; up all downtime minutes in the Header sheet for shift 1. But I get #REF as
gt; gt; the answer. Can someone please help? A57 hold 1 for the shift number,
gt; gt; B1:B700 holds the shift number in the data and A:FS is the enitre data set.
gt; gt;
gt; gt; =SUM(INDEX(Header!A:FS,MATCH(A57,Header!B1:B700,0) ))
gt; gt;
gt; gt; --
gt; gt; -----
gt; gt; Thank you,
gt; gt; Liz
gt; gt;
What do you mean by quot;What it is doing etcquot; Have you ever gotten it to work
or did you mean quot;What I hoped it would do etcquot;?
Where is the data you want to lookup, in one or multiple columns?
=SUMIF(B1:B700,A57,C1:C700)
if it would be one column in this example column C
=SUMPRODUCT((B1:B700=A57)*(C1:E700))
more than one column, in this example columns C:E
note that the totaled column(s) need to be numeric for the last formula, if
there are text values as well it will return an error. If you have numbers
in All columns from C to FS you should rethink the design
--
Regards,
Peo Sjoblom
nwexcelsolutions.comquot;Liz Steffenquot; gt; wrote in message
...
gt; Here is my syntax for summing looked up fields. What it is doing is
gt; looking
gt; up all downtime minutes in the Header sheet for shift 1. But I get #REF
gt; as
gt; the answer. Can someone please help? A57 hold 1 for the shift number,
gt; B1:B700 holds the shift number in the data and A:FS is the enitre data
gt; set.
gt;
gt; =SUM(INDEX(Header!A:FS,MATCH(A57,Header!B1:B700,0) ))
gt;
gt; --
gt; -----
gt; Thank you,
gt; Liz
gt;
- Nov 18 Sat 2006 20:10
SUM of INDEX lookups
close
全站熱搜
留言列表
發表留言