Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
baldamenti
 
Posts: n/a
Default have some problem with database


Hello

Have this problem that I'm trying to solve. Have just discovered how
great Excel is, so I apologise if my question is noobie.

Well this is it:

In my daily work I have to fill in an excel worksheet that contains
following columns
-Date
-Customer name
-Customer number
-Product name
-Cause
-Total amount
-Signature
-Salesman

In the end of every week i have to sumarize everything into an report
and I would like to make it more automatic.

Have been making this "summarize" for a while and i have one problem.

Well my problem is that I would like to know which customers have the
biggest amounts. So I want to create formula of some kind that first
takes a look at causes, takes ones that i asign it to then takes a look
at amounts of those chosen ones and takes a biggest one. Third step is
that returns customers name that has biggest amount and is of right
cause.

It's important that it doesn't take just any big amount or cause, but
the ones in the same row.

Hope that you understand my problem, if not don't hesitate to ask
further questions...

i have been thinking of combining IF and MAX, but don't know how...

THANKS IN ADVANCE

Regards,
Baldamenti


--
baldamenti
------------------------------------------------------------------------
baldamenti's Profile: http://www.excelforum.com/member.php...o&userid=28071
View this thread: http://www.excelforum.com/showthread...hreadid=475814

  #2   Report Post  
vezerid
 
Posts: n/a
Default

Assuming your columns start from A:A (thus Cause is E:E and Total is
F:F). Further assuming that you have 100 rows, thus your table data are
in A2:H101:

Highest total for a given cause:
=MAX($F$2:$F$101*IF($E$2:$E$101="MyCause", 1, 0))
To be array entered (Shift+Ctrl+Enter)

Suppose the total is in cell K2. Then, to find the customer with this
total,
=INDEX($C$2:$C$101,MATCH(K2,$F$2:$F$101,0))

HTH
Kostis Vezerides

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
multiple items in database Peter Excel Worksheet Functions 2 June 15th 05 08:19 PM
make existing pivot charts point at the same database Valeria Charts and Charting in Excel 3 June 15th 05 12:43 PM
How do I use Excel to post data to an external database? ctimrun Excel Discussion (Misc queries) 0 June 14th 05 05:39 AM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
Updating database worksheet problem (Template Wizard) grasping@straws Excel Discussion (Misc queries) 1 December 17th 04 02:26 PM


All times are GMT +1. The time now is 08:02 AM.

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"