Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default complex function----Help!

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default complex function----Help!

you should use sumproduct. a sample:

=sumproduct(--(a2:a100=g2)*(b2:b100h2)*(b2:b100<i2),(c2:c100))

whe

g2 contaim the item code that excel will check on column A
h2 has the start date that will be check on column B
I2 has the end date
and column c has the values that you would like to sum.

change the ranges as you need.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default complex function----Help!

Thanks so much I'll try that. One other thing my boss wants---is there a way
to set it up so that you can double click on the result cell and have another
worksheet open with the info that it gathered like a pivot table does?

--
narp


"Marcelo" wrote:

you should use sumproduct. a sample:

=sumproduct(--(a2:a100=g2)*(b2:b100h2)*(b2:b100<i2),(c2:c100))

whe

g2 contaim the item code that excel will check on column A
h2 has the start date that will be check on column B
I2 has the end date
and column c has the values that you would like to sum.

change the ranges as you need.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default complex function----Help!

Only in Pivot tables


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

Thanks so much I'll try that. One other thing my boss wants---is there a way
to set it up so that you can double click on the result cell and have another
worksheet open with the info that it gathered like a pivot table does?

--
narp


"Marcelo" wrote:

you should use sumproduct. a sample:

=sumproduct(--(a2:a100=g2)*(b2:b100h2)*(b2:b100<i2),(c2:c100))

whe

g2 contaim the item code that excel will check on column A
h2 has the start date that will be check on column B
I2 has the end date
and column c has the values that you would like to sum.

change the ranges as you need.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default complex function----Help!

thanks again
--
narp


"Marcelo" wrote:

Only in Pivot tables


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

Thanks so much I'll try that. One other thing my boss wants---is there a way
to set it up so that you can double click on the result cell and have another
worksheet open with the info that it gathered like a pivot table does?

--
narp


"Marcelo" wrote:

you should use sumproduct. a sample:

=sumproduct(--(a2:a100=g2)*(b2:b100h2)*(b2:b100<i2),(c2:c100))

whe

g2 contaim the item code that excel will check on column A
h2 has the start date that will be check on column B
I2 has the end date
and column c has the values that you would like to sum.

change the ranges as you need.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default complex function----Help!

you are welcome
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

thanks again
--
narp


"Marcelo" wrote:

Only in Pivot tables


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

Thanks so much I'll try that. One other thing my boss wants---is there a way
to set it up so that you can double click on the result cell and have another
worksheet open with the info that it gathered like a pivot table does?

--
narp


"Marcelo" wrote:

you should use sumproduct. a sample:

=sumproduct(--(a2:a100=g2)*(b2:b100h2)*(b2:b100<i2),(c2:c100))

whe

g2 contaim the item code that excel will check on column A
h2 has the start date that will be check on column B
I2 has the end date
and column c has the values that you would like to sum.

change the ranges as you need.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"narp" escreveu:

I have a worksheet(1) that is setup as follows:
Col A ColB ColC
Item# Date Qty

Worksheet(2)
ColA ColB ColC ColD
Item# Start Date End Date (result)

I am trying to write a function that will look for info in cell A5 in
worksheet 2 and find the info in column A in worksheet 1 check that the date
in column B being between a date range and then returning a sum of the totals
of the corresponding rows of column C in worksheet 1. I hope this makes
sense..I'm not sure how else to explain it.
--
narp

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
Complex Function? Metolius Dad Excel Worksheet Functions 2 August 31st 06 06:04 AM
complex function LostSam Excel Worksheet Functions 2 May 3rd 06 01:57 AM
complex function GTUGoddess Excel Worksheet Functions 4 September 20th 05 02:55 PM
complex date function tjb Excel Worksheet Functions 2 August 30th 05 05:02 PM
Complex if and mid function. brookdale Excel Worksheet Functions 5 June 28th 05 07:52 PM


All times are GMT +1. The time now is 01:52 AM.

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"