Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sherriq
 
Posts: n/a
Default Function Problems

I need to display the four top sales and reference the name of the sheet the
information came from in the cell beside it. I can get the largest number,
but from there all I get is errors. Any help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default Function Problems


You will need to give a little more information, we have not got enough
to go on, What is stored on the Sheets etc Is it any cell or the same
cell on each sheet? etc

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555629

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sherriq
 
Posts: n/a
Default Function Problems


Each sheet is for a different salesperson and contains all of their sales
for the year. It has a running total on the bottom of each page for that
salesperson. I used the same cell number (B43) on each sheet. What I need
to do is have it post the 4 top salespeople and their names. Each sheet is
named with the salesperson's name. Hope this is enough information.

Sherri

"Dav" wrote:


You will need to give a little more information, we have not got enough
to go on, What is stored on the Sheets etc Is it any cell or the same
cell on each sheet? etc

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555629


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default Function Problems


You could copy the following macro into a module and it would tell you
in cells e5:f8, you can change the range by changing that bit at the
bottom of the macro

I have also assummed that the results sheet is the first sheet in your
workbook and have created a second sheet that remains hidden to store
the interim data

Sub Top4()
Sheets(2).Visible = True
Sheets(2).Select
Cells.Select
Selection.ClearContents
For x = 3 To Sheets.Count 'for all the other sheets (gun crime sheets
go from the first sheet (now sheet2) to the last
Cells(x, 3).Select 'go to cell (2,3)=c2 then c3
then c4 etc
Selection.Value = UCase(Sheets(x).Name) 'put the name of the workseet
in that cell
Cells(x, 4).Select 'go to cell d2, then d3 etc
Selection.Value = Sheets(x).Range("b43").Value
Range("C3").Select
Selection.Sort Key1:=Range("D3"), Order1:=xlDescending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Next x
Sheets(1).Select

Range("E5").Select
ActiveCell.FormulaR1C1 = "=Data!R[-2]C[-2]"
Range("E5").Select
Selection.AutoFill Destination:=Range("E5:E8"),
Type:=xlFillDefault
Range("E5:E8").Select
Selection.AutoFill Destination:=Range("E5:F8"),
Type:=xlFillDefault
Range("E5:F8").Select
Sheets(2).Visible = False
End Sub


Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555629

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
Problems updating shared documents which used "Lookup" function Yeam69 Excel Discussion (Misc queries) 0 June 21st 06 08:42 AM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Linest function: data selection problems NathanG Excel Worksheet Functions 1 August 26th 05 04:12 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
opening up an english excel sheet onto a french verions - problems with edate function [email protected] Excel Discussion (Misc queries) 0 February 20th 05 01:37 PM


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