Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sorted appearing table (vlookup, if, concontinate)???

I currently have spreadsheets on which things appear only if certain criteria
are met (call it Ordersheet). I know this uses the If/Concatenate function.
most of it is working properly, but I recently was asked to add a section to
it, and I'm not sure how to make it work.

On another spreadsheet (same workbook) I have a sheet with prizes (well
call it prizesheet). each of the employee's put down what they wanted if
they met certain incentive goals. they were given a list with slots ranging
1-14. Each person was told to order desired prizes in these slots. Some
people put multiples of the same items on the sheet, and in addition the
number they wanted to buy, (also some items are only available in certain
slots).
I need it to appear on the order form with only the totals for each type,
not the goal at which they were achieved.

for example if a person choose on the Prizesheets:
level prize
1 watch 1
1 or bracelet 0
2 notebook 1
3 mug 1
4 watch 1
5 mug 1
and in addition chose to purchase
watch 2
notebook 1

then I need it to show on my Ordersheet as
watch 4
notebook 2
mug 2


in addition, I need it to keep updating based on the number of goals they
meet,
so that if they meet only 3 goals then only the first 3, plus purchases is
totaled, but if they meet 5 goals, then those additional goals get added in
at that time. (hope that makes sense). please help, or point me in the right
direction, if you can. thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Sorted appearing table (vlookup, if, concontinate)???

Let's say level is in A1:A8, item description is in B1:B8, and amount is in
C1:C8. Also, assuming that for purchased items, the level number in column A
is either empty or 0.

The level attained is in F1, item description you want totaled is in G1,
try this formula in H1:

=SUMPRODUCT(--($A$1:$A$8<=F1),--($B$1:$B$8=G1),$C$1:$C$8)

Adjust ranges to suit, but prior to XL2007, sumproduct cannot use an entire
column (eg A:A).

It's not clear from your data if the item description and amount are in
separate columns (looks like they may be concatenated together in the same
cell). I would split these - I think it would make it easier to work w/the
data.


"Luna" wrote:

I currently have spreadsheets on which things appear only if certain criteria
are met (call it Ordersheet). I know this uses the If/Concatenate function.
most of it is working properly, but I recently was asked to add a section to
it, and I'm not sure how to make it work.

On another spreadsheet (same workbook) I have a sheet with prizes (well
call it prizesheet). each of the employee's put down what they wanted if
they met certain incentive goals. they were given a list with slots ranging
1-14. Each person was told to order desired prizes in these slots. Some
people put multiples of the same items on the sheet, and in addition the
number they wanted to buy, (also some items are only available in certain
slots).
I need it to appear on the order form with only the totals for each type,
not the goal at which they were achieved.

for example if a person choose on the Prizesheets:
level prize
1 watch 1
1 or bracelet 0
2 notebook 1
3 mug 1
4 watch 1
5 mug 1
and in addition chose to purchase
watch 2
notebook 1

then I need it to show on my Ordersheet as
watch 4
notebook 2
mug 2


in addition, I need it to keep updating based on the number of goals they
meet,
so that if they meet only 3 goals then only the first 3, plus purchases is
totaled, but if they meet 5 goals, then those additional goals get added in
at that time. (hope that makes sense). please help, or point me in the right
direction, if you can. thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sorted appearing table (vlookup, if, concontinate)???

I am using excel 2003.
I now have the data devided. though other then for perchase column c always
=1.
I am thinking it needs to be a combo of SumIF and Vlookup. as i am
unfermiallar with SumProduct.
i suppose i am hoping there is a tutorial out there in the world that shows
how that would be used.

"JMB" wrote:

Let's say level is in A1:A8, item description is in B1:B8, and amount is in
C1:C8. Also, assuming that for purchased items, the level number in column A
is either empty or 0.

The level attained is in F1, item description you want totaled is in G1,
try this formula in H1:

=SUMPRODUCT(--($A$1:$A$8<=F1),--($B$1:$B$8=G1),$C$1:$C$8)

Adjust ranges to suit, but prior to XL2007, sumproduct cannot use an entire
column (eg A:A).

It's not clear from your data if the item description and amount are in
separate columns (looks like they may be concatenated together in the same
cell). I would split these - I think it would make it easier to work w/the
data.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sorted appearing table (vlookup, if, concontinate)???

things to mention:
im using excel 2003
some of the items on the list of data, are devided into datavalidation lists.
all = 1
  #5   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Sorted appearing table (vlookup, if, concontinate)???

some good information he
http://xldynamic.com/source/xld.SUMPRODUCT.html






"Luna" wrote:

I am using excel 2003.
I now have the data devided. though other then for perchase column c always
=1.
I am thinking it needs to be a combo of SumIF and Vlookup. as i am
unfermiallar with SumProduct.
i suppose i am hoping there is a tutorial out there in the world that shows
how that would be used.

"JMB" wrote:

Let's say level is in A1:A8, item description is in B1:B8, and amount is in
C1:C8. Also, assuming that for purchased items, the level number in column A
is either empty or 0.

The level attained is in F1, item description you want totaled is in G1,
try this formula in H1:

=SUMPRODUCT(--($A$1:$A$8<=F1),--($B$1:$B$8=G1),$C$1:$C$8)

Adjust ranges to suit, but prior to XL2007, sumproduct cannot use an entire
column (eg A:A).

It's not clear from your data if the item description and amount are in
separate columns (looks like they may be concatenated together in the same
cell). I would split these - I think it would make it easier to work w/the
data.



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
Why can't this table be sorted? james Excel Discussion (Misc queries) 3 February 20th 10 04:41 PM
VLOOKUP always required the searching field SORTED? Johan2000 Excel Programming 1 November 9th 06 12:55 PM
Why must the table for Vlookup be sorted in ascending order? Epinn New Users to Excel 3 August 12th 06 08:04 AM
Using VLOOKUP without a sorted list dzuy Excel Programming 2 July 25th 06 04:28 PM
vlookup for a value appearing more than once RITA Excel Worksheet Functions 1 February 10th 05 07:08 PM


All times are GMT +1. The time now is 10:05 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"