Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default VLOOKUP, Sorting, Calculate

I have a project to create a "running" report that calculates various
formulas for each particular jobID, but the job ID's aren't entered yet ( to
be entered in the future in another worksheet within the same workbook), and
when they are, their are multiple jobID's to be summed up to create one jobID
with one value.
This is my scenario-

Expenses! (worksheet) has the following data
A1 = Date
B1 = jobID
C1 = totalexpense
note: one jobID may appear several times in B column depending on the number
of purchases made for that jobID

Profits! (worksheet within same workbook as above) has the following data
A1 = jobID
B1 = totalexpense
C1 = formulas I will enter later

How can I have Profits!A1 automatically sort through Expenses!A1:B100 to add
up the totals expenses for each respective jobID AS THE JOBID's ARE BEING
ENTERED IN THE FUTURE? For example, jobID100 apears 8 times with different
values each time. I need jobID100 to appear in Profits!A1 and the cumulative
total of the 8 times an expense was entered for jobID100 entered in
Profits!B1. Profits!B1 needs to be able to change in the event jobID100
appears again in the future.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default VLOOKUP, Sorting, Calculate

ASSUMING expenses can be sorted by JOBID then in Profit:

A2: =Expenses!B2
A3: =OFFSET(Expenses!$B$2,COUNTIF(Expenses!$B$2:$B$500 0,"<="& Profit!A2),0)
and copy down until 0 value as JobID


B2:
=SUMPRODUCT(--(Expenses!$B$2:$B$5000=Profit!$A2)*(Expenses!$C$2: $C$5000)) and
copy down

Change ranges of B & C to suit.

HTH

"rldjda" wrote:

I have a project to create a "running" report that calculates various
formulas for each particular jobID, but the job ID's aren't entered yet ( to
be entered in the future in another worksheet within the same workbook), and
when they are, their are multiple jobID's to be summed up to create one jobID
with one value.
This is my scenario-

Expenses! (worksheet) has the following data
A1 = Date
B1 = jobID
C1 = totalexpense
note: one jobID may appear several times in B column depending on the number
of purchases made for that jobID

Profits! (worksheet within same workbook as above) has the following data
A1 = jobID
B1 = totalexpense
C1 = formulas I will enter later

How can I have Profits!A1 automatically sort through Expenses!A1:B100 to add
up the totals expenses for each respective jobID AS THE JOBID's ARE BEING
ENTERED IN THE FUTURE? For example, jobID100 apears 8 times with different
values each time. I need jobID100 to appear in Profits!A1 and the cumulative
total of the 8 times an expense was entered for jobID100 entered in
Profits!B1. Profits!B1 needs to be able to change in the event jobID100
appears again in the future.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default VLOOKUP, Sorting, Calculate

Alternatively, look at using a pivot table.

"Toppers" wrote:

ASSUMING expenses can be sorted by JOBID then in Profit:

A2: =Expenses!B2
A3: =OFFSET(Expenses!$B$2,COUNTIF(Expenses!$B$2:$B$500 0,"<="& Profit!A2),0)
and copy down until 0 value as JobID


B2:
=SUMPRODUCT(--(Expenses!$B$2:$B$5000=Profit!$A2)*(Expenses!$C$2: $C$5000)) and
copy down

Change ranges of B & C to suit.

HTH

"rldjda" wrote:

I have a project to create a "running" report that calculates various
formulas for each particular jobID, but the job ID's aren't entered yet ( to
be entered in the future in another worksheet within the same workbook), and
when they are, their are multiple jobID's to be summed up to create one jobID
with one value.
This is my scenario-

Expenses! (worksheet) has the following data
A1 = Date
B1 = jobID
C1 = totalexpense
note: one jobID may appear several times in B column depending on the number
of purchases made for that jobID

Profits! (worksheet within same workbook as above) has the following data
A1 = jobID
B1 = totalexpense
C1 = formulas I will enter later

How can I have Profits!A1 automatically sort through Expenses!A1:B100 to add
up the totals expenses for each respective jobID AS THE JOBID's ARE BEING
ENTERED IN THE FUTURE? For example, jobID100 apears 8 times with different
values each time. I need jobID100 to appear in Profits!A1 and the cumulative
total of the 8 times an expense was entered for jobID100 entered in
Profits!B1. Profits!B1 needs to be able to change in the event jobID100
appears again in the future.

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default VLOOKUP, Sorting, Calculate

hi rldjda
you have an interesting post for me...
1. Is the plan to create a JOBID will be in series (eg. 100,101,102) ?
2. Which will be in series for FUTURE entry on Expense! ? The DATE or the
JOBID.... OR BOTH?
3. In the Profit! "since you will prepare a formula in column C " which
maybe the PROFIT per JOBID", are you planning to sum the planned expense or
the Actual Expense which are entered on Expense! by the Dates<=Today() or
Today()....?


the word future entry for me seems you need the ACTUAL in reference to
TODAY()...

regards

ill the entry of JOBID and Expenses in Expense! will be in series
--
*****
birds of the same feather flock together..



"rldjda" wrote:

I have a project to create a "running" report that calculates various
formulas for each particular jobID, but the job ID's aren't entered yet ( to
be entered in the future in another worksheet within the same workbook), and
when they are, their are multiple jobID's to be summed up to create one jobID
with one value.
This is my scenario-

Expenses! (worksheet) has the following data
A1 = Date
B1 = jobID
C1 = totalexpense
note: one jobID may appear several times in B column depending on the number
of purchases made for that jobID

Profits! (worksheet within same workbook as above) has the following data
A1 = jobID
B1 = totalexpense
C1 = formulas I will enter later

How can I have Profits!A1 automatically sort through Expenses!A1:B100 to add
up the totals expenses for each respective jobID AS THE JOBID's ARE BEING
ENTERED IN THE FUTURE? For example, jobID100 apears 8 times with different
values each time. I need jobID100 to appear in Profits!A1 and the cumulative
total of the 8 times an expense was entered for jobID100 entered in
Profits!B1. Profits!B1 needs to be able to change in the event jobID100
appears again in the future.

Thanks in advance.

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
vlookup isn't working correctly? Dave F Excel Discussion (Misc queries) 2 October 14th 06 04:27 AM
formula to lookup value and return value from cell at left of target Tony Strazzeri Excel Worksheet Functions 14 October 3rd 06 08:30 AM
VLOOKUP and its properties pepenacho Excel Worksheet Functions 1 August 22nd 06 10:52 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 06:50 PM.

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

About Us

"It's about Microsoft Excel"