Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Need urgent help with SUMPRODUCT()

Hello,

I have an Excel to track performance. Sheet1 is performance table where user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#, time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F G
ID date part# side start seq stop seq Calculated Time
001 1/8/08 1360-1 1st 100 400 55 (5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65 (10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
...........

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Need urgent help with SUMPRODUCT()

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F G
ID date part# side start seq stop seq Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65 (10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........



  #3   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Need urgent help with SUMPRODUCT()

Valko,

Thanks for all your help. I re-entered the data manually and it seemed to be
working. But, the actual raw data I worked with is from an import Access
database. Some calculated and some give me 0 result. Maybe, there have to be
something about the character when importing data from Access db. Is there a
way to inport the data correctly?

"T. Valko" wrote:

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F G
ID date part# side start seq stop seq Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65 (10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Need urgent help with SUMPRODUCT()

Importing data from another application can sometimes lead to importing
unseen characters like leading/trailing spaces that casue problems with
formulas.

Every time I import something into Excel I run this macro to "clean" the
data:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

Thanks for all your help. I re-entered the data manually and it seemed to
be
working. But, the actual raw data I worked with is from an import Access
database. Some calculated and some give me 0 result. Maybe, there have to
be
something about the character when importing data from Access db. Is there
a
way to inport the data correctly?

"T. Valko" wrote:

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F
G
ID date part# side start seq stop seq
Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65
(10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........






  #5   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Need urgent help with SUMPRODUCT()

Valko,

I was wondering whether text field or numeric field from Access have
something to do with why it is not calculating or give incorrect calculation.
Just for information on my actual data from Access part# and side and start
and stop seq are text field and time are numeric fields.

Should I change the start and stop sequence to numeric field instead?

"T. Valko" wrote:

Importing data from another application can sometimes lead to importing
unseen characters like leading/trailing spaces that casue problems with
formulas.

Every time I import something into Excel I run this macro to "clean" the
data:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

Thanks for all your help. I re-entered the data manually and it seemed to
be
working. But, the actual raw data I worked with is from an import Access
database. Some calculated and some give me 0 result. Maybe, there have to
be
something about the character when importing data from Access db. Is there
a
way to inport the data correctly?

"T. Valko" wrote:

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F
G
ID date part# side start seq stop seq
Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65
(10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........









  #6   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Need urgent help with SUMPRODUCT()

Also, I forgot to mention that the values in start/ stop sequence range from
50 to 9999. The side is either 1st side or 2nd side and the part# has both
letter and number and all part# do not have the same number of characters.

"Cam" wrote:

Valko,

I was wondering whether text field or numeric field from Access have
something to do with why it is not calculating or give incorrect calculation.
Just for information on my actual data from Access part# and side and start
and stop seq are text field and time are numeric fields.

Should I change the start and stop sequence to numeric field instead?

"T. Valko" wrote:

Importing data from another application can sometimes lead to importing
unseen characters like leading/trailing spaces that casue problems with
formulas.

Every time I import something into Excel I run this macro to "clean" the
data:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

Thanks for all your help. I re-entered the data manually and it seemed to
be
working. But, the actual raw data I worked with is from an import Access
database. Some calculated and some give me 0 result. Maybe, there have to
be
something about the character when importing data from Access db. Is there
a
way to inport the data correctly?

"T. Valko" wrote:

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the time
based on a match of part#, side, start seq and stop seq of "Ref" sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F
G
ID date part# side start seq stop seq
Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65
(10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........







  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Need urgent help with SUMPRODUCT()

Should I change the start and stop sequence to numeric field instead?

Try it and see if it makes a difference.

You can try to force those fields to numeric like this:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16+0=E2),--(C$10:C$16+0<=F2),D$10:D$16+0)

However, that won't work if there are unseen characters like
leading/trailing spaces. If there are unseen characters that will cause the
formula to return an error.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

I was wondering whether text field or numeric field from Access have
something to do with why it is not calculating or give incorrect
calculation.
Just for information on my actual data from Access part# and side and
start
and stop seq are text field and time are numeric fields.

Should I change the start and stop sequence to numeric field instead?

"T. Valko" wrote:

Importing data from another application can sometimes lead to importing
unseen characters like leading/trailing spaces that casue problems with
formulas.

Every time I import something into Excel I run this macro to "clean" the
data:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

Thanks for all your help. I re-entered the data manually and it seemed
to
be
working. But, the actual raw data I worked with is from an import
Access
database. Some calculated and some give me 0 result. Maybe, there have
to
be
something about the character when importing data from Access db. Is
there
a
way to inport the data correctly?

"T. Valko" wrote:

See this screencap:

http://img528.imageshack.us/img528/2058/camul0.jpg

As you can see in the screencap the formula returns the correct
results.

This is the formula entered in G2:

=SUMPRODUCT(--(A$10:A$16=C2),--(B$10:B$16=D2),--(C$10:C$16=E2),--(C$10:C$16<=F2),D$10:D$16)

There is also a fragmented post from this thread that I replied to.


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table
where
user
input their ID, date, part#, side, start seq & stop seq daily. Then
on a reference sheet called "Ref" with field: part#, side, seq#,
time(min).

I need a formula to put in the column G in sheet1 to calculate the
time
based on a match of part#, side, start seq and stop seq of "Ref"
sheet.
Thanks

Example:
Sheet1 - User input data
A B C D E F
G
ID date part# side start seq stop seq
Calculated
Time
001 1/8/08 1360-1 1st 100 400 55
(5+10+10+30)
002 1/10/08 1360-1 1st 300 500 65
(10+30+25)

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10
..........









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent ..Need help Emilio Excel Discussion (Misc queries) 2 December 23rd 07 11:19 AM
URGENT HELP PLEASE triffidbook Excel Worksheet Functions 3 October 4th 06 04:28 PM
URGENT: Please Advise. SumProduct and Operand Question Brent E Excel Discussion (Misc queries) 8 May 24th 06 07:48 PM
Sum IF-Urgent! Sue Excel Discussion (Misc queries) 5 April 6th 06 01:09 AM
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM


All times are GMT +1. The time now is 09:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"