Find number and name of sales person

Hi, 
I have a table, which lists the number of sales made by sales person for the year 2013. How do I list the number of sales and the name of sales person, whose sales are less than 4 for the year 2013.
Name
Gender
Won Oppty
Sales ( in Value USD)
Sold Month and Year
Year
KFM WMM
F
2
$1,279,310
72013
2013
FSOR DPK
M
2
$965,445
92013
2013
JCS QJA
M
3
$1,892,919
52013
2013
YQFT NNOPI
F
4
$2,205,713
102013
2013
ZGZRS XSV
M
4
$1,516,615
52013
2013
AQOH KEYOZ
M
4
$1,908,883
52013
2013
DWE XSV
M
5
$1,356,954
102013
2013
YFE JDP
F
6
$2,767,863
82013
2013
KCRXF XSV
F
6
$2,037,738
42013
2013
OVEL LZS
F
6
$2,276,738
72013
2013
The answer I should get is
2
KFM WMM
2
FSOR DPK
3
JCS QJA
Nirmal

Hi~
Formula cannot complete your needs.
You can use criteria parameters (like "<4" and "=2013") in VBA code:
Option Explicit
Sub GetFilteredData()
With ActiveSheet
With .UsedRange
.AutoFilter Field:=3, Criteria1:="<4"
.AutoFilter Field:=6, Criteria1:="=2013"
End With
.Columns(2).Hidden = True
.Columns("$D:$F").Hidden = True
End With
End Sub
Sub RestoreData()
With ActiveSheet
If .AutoFilterMode Then
.AutoFilterMode = False
End If
With .Columns(2)
If .Hidden Then
.Hidden = False
End If
End With
With .Columns("$D:$F")
If .Hidden Then
.Hidden = False
End If
End With
End With
End Sub
In Sheet1, insert two shapes and assign macro names to them, here's the result by clicking GetFilteredData and RestoreData:
Regards,
Cristin Yan

Similar Messages

  • Output SAP Mail Message - Payer Number and Name

    Hi,
    I'm trying to set up our sap system to output a message if a sales order goes into credit block. I have all this working and the last part of the request is to include the payer number and name for the sales order on the mail.
    I have set up the following against my output
    Replacement of Text Symbols
    Program: SAPMV45A
    Form Routine: TEXT_SYMBOL_REPLACE
    and then I have the following mail title:
    Sales Order on Credit Block - PAYER:&XVBAK-KNKLI&
    I would like to include the name in this, or in the text for the message but I do not know how to extract this. Any ideas?
    Many thanks,
    Steph.

    Christopher,
    if you now have set up the WSMessageListener, this one can also be called by external functions. Alternatively you can call any MII transaction as a webservice.
    For example, you can use something like this:
    http://<server>:<port>/XMII/WSDLGen/<folder>/<tran>
    You can also user the runner service (the example gives a pdf output):
    http://<server>:<port>/XMII/Runner?Transaction=<folder>/<Transaction-name>
    &<InpuParamName1>=<value1>
    &<InpuParamName n>=<value n>
    &OutputParameter=pdfOutput
    &Content-Type=application/pdf
    &isBinary=true
    &XacuteLoginName=<username>&XacuteLoginPassword=<password>
    Michael

  • DESCRIBE TABLE or similar to get number and name of a table fields

    Hi experts,
    I want to use a sentence to get the number and name of the fields contained on a table or structure, and i cannot use DESCRIBE TABLE. I cannot find a way to get that info, does anybody know a sentence or method/funcion for this?
    Thanks!!!
    Artur.

    use this FM GET_COMPONENT_LIST.
    can get list of fields also from variable which is not defined in DDIC. But has to be global.
    Michal

  • Portal infomration System Number  and Name required

    Hi all,
    I need to know few details about the portal information. I am looking for System Number  and Name of portal mainly through WD program program . Could you please help me how to find this. I promise to award points. Do I need to have any Lib/Jar files required to get this info. Program tips are most helpfull and appreciated as well.
    General way to find in portal
    Log into Portal- >System Information -> Name info (Under Database)
    Log into Portal- >System Information -> System Number info  (under Licenses)
    Thank you,
    Regards
    Maruti

    System.getProperty("SAPSYSTEMNAME");  // System ID
    System.getProperty("SAPSYSTEM");   // System Number

  • Importing CD to Artist folder\Album folder\file with track number and name:

    I have a problem then importing my cd’s to my harddisk using iTunes.
    On my previous pc I got what I want, Artist folder, Album folder and file with track number and name:
    e.g.
    D:\My Music\B.B. King\Blues On The Bayou\01 Blues Boys Tune.mp3
    D:\My Music\B.B. King\Blues On The Bayou\02 Bad Case Of Love.mp3
    D:\My Music\B.B. King\Blues On The Bayou\03 I'll Survive.mp3
    But now I get:
    D:\My Music\Compilations\Blues On The Bayou\01 Blues Boys Tune.mp3
    D:\My Music\ Compilations \02 Bad Case Of Love.mp3
    D:\My Music\ Compilations \03 I'll Survive.mp3
    In iTunes my settings are Edit -> Preferences -> Advanced: iTunes Music folder: D:\My Music and checkmark in both: “Keep iTunes Music folder organized” and “Copy files to iTunes Music folder when adding to library”.
    My version of iTunes is 8.0.1.11
    Thanks in advance
    Peter

    It will depend on the album. Gracenote considers anthologies, a collection of tracks by the same artist taken from different albums, as a compilation. In iTunes the compliation setting should really only be applied to a collection of tracks by different artists.
    tt2

  • Project Server 2010 - Modification date and name of the person who made the last change in the project

    Hello everybody
    I'm with a doubt.
    I got in the business
    environment Project Server 2010 and
    would like to get the publication date,modification
    date and name
    of the person who made
    the last change in
    the project. It is possible
    to doby the native
    resources or is
    there any query in
    SQL Server to perform a
    query of this information.
    Thank you.
    Obrigado por contactar o fórum Microsoft Technet!

    Hi Hezequias,
    You can get the ProjectModifiedDate column in MSP_EPMProject_userView in the Reporting DB where you can
    get the data based on the projectUID. 
    The "last saved" date in the draft DB (be aware that querying in the draft DB is not supported by MS).
    For the "last modified by", I think it is not stored in any place.
    But you can develop custom code upon publishing the project (Event BeforePublish), writing the current
    date and username automatically into a custom enterprise field.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • I delete people in my phone number but when I go to messages I found their number and name how I can delete them

    I delete people in my phone number but when I go to messages I found their number and name how I can delete them

    There's no option to edit/delete the iPhone cache, the cache will be overwritten in time.
    If you can't wait, only restore as new can get rid of it.

  • Copy contract PO number and Date to Sales Order

    Hi freinds,
    I have one requirement. I want to copy contract PO number and date to Sales order PO Number and Date while creating the sales order with reference to contract.
    Thanks,
    Satya

    Hi,
    You have to modify your data transfer routine with the help of ABAPer.
    You have to give him the requirement that these value should be copied to sales order from contract.
    He will do the needful changes in the data transfer routine.
    Then assign that routine to the copy control of sales order from contract.
    Regards
    Raj.

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • Dynamically add and modify listbox columns number and names

    I need to dynamically modify number and names of columns in a listbox.
    What should I do for this? And is it even possible?

    Frank-
    Thanks for the suggestion -- I hadn't tried that but just did and it still doesn't seem to work. Would the binding cache AttrDefs separately from results?

  • Finding batch job name for sales order change (billing block)

    hi,
    there is a tab known as billing block in the sales order.
    now a batch job ran which removed this billing block and released the sales order for delivery and PGI activities.
    we have the information regarding the date and time on which this batch job ran but the job name is unknown.
    also we tried in SM37 which gives no details.
    we have information regarding the user name of the batch job but name is unknown.
    help us in finding the batch job name with the above mentioned available data.
    it is a very high priority.
    thanks in advance
    Rahman

    Hi ,
    in SM37-->
         a)Set the Job start condition ( dates ) --You have information --YOu can keep them blank if you don't have the information. But it will fetch all the batch jobs of the user.
         b) user Name  -You have information
         c_ use '*'  in place of Job name
    Then this will fetch you the Batch Job name . Then Check step --> you can find the program name.
    You can check the Log for job details like when started and when completed.
    Regards,
    Lanka

  • Number and name of rows

    Is there any way to know the total number and the names of the rows in a table?

    Sample:
    private void loadMetaData() {
    int i = 0;
    try {
    metaData = rs.getMetaData();
    int singleHtColumnType;
    columnCount = metaData.getColumnCount();
    for (i = 1; i <= columnCount; i++) {
    columnNames[i-1] = new String(metaData.getColumnName(i));
    // System.out.println("meta-look " + columnNames[i-1]);
    // System.out.println(metaData.getColumnLabel(i)); // on AS/400 == columnName :-((
    // System.out.println("ColumnDisplaySize: " + metaData.getColumnDisplaySize(i));
    singleHtColumnType = metaData.getColumnType(i);
    if (readBigDecimalAsInt & singleHtColumnType == 8) singleHtColumnType = 4;
    columnType[i-1] = singleHtColumnType;
    if (singleHtColumnType == 8
    || (databaseType == ConnectionHolder.DB2_400 && singleHtColumnType == 3)) {
    columnScale[i-1] = metaData.getScale(i);
    htColumnType.put(columnNames[i-1], new Integer(singleHtColumnType));
    if (singleHtColumnType == 1 | singleHtColumnType == 12) maxFieldSize.put(columnNames[i-1], new Integer(getColumnDisplaySize(i)));
    catch (SQLException e2) {
    System.out.println("loadMetaData caught " + e2);
    System.out.println("Index was " + i);
    catch (Exception e) {
    System.out.println("loadMetaData caught " + e);
    System.out.println("Index was " + i);

  • Find number and and text message from childs phone

    How do I find out a specific phone number of a text that was sent last friday night? And also the content of the text?

    By looking at the child's phone?
    You can find out the number if you know the time it was received and looking online in your MyVerizon. For the content, you will need to look at the phone, though.

  • G/L Account Display with Vendor Number and Name -Urgent-

    Hi Experts!
    Is there a transaction, report, or table that can show a list of all the vendor names/numbers for transactions posted to a specific G/L account for a specified period?  If so, please let me know.  Thank you for your time!
    Best Regards,
    WC

    We can display the Vendor number from the layout in FBL3N report, but the Vendor number will be displayed only if the document is posted from MM module. If the posting is from normal FI, it will not be displayed.
    Other option is to develop a simple ABAP report to display Vendor.
    Thanks
    Murali.

  • To get number and name of groups() existing in AD

    Dear Fouramites,
    I got the program from this forum to retrive the number of users in a group given the name of the group in search filter.
    String searchFilter = "(&(objectClass=group)(CN=pluto*))";
    My requirement is to get the names of all the the groups(aliases) created by admin. Can any one plz help me out in getting this info.
    Thanks & Regards
    Kaavyanjali jena

    use this FM GET_COMPONENT_LIST.
    can get list of fields also from variable which is not defined in DDIC. But has to be global.
    Michal

Maybe you are looking for

  • How do I track a hub return to BT?

    I recently had my internet go out completely for most of a day.  I called BT to find out if there was trouble in my area and was told no.  When I contacted BT I spent an hour on the phone with them trying this and that and testing things to try to ge

  • How do I remove floating music from my iMovie '11 project?

    I created a new project using iMovie '11.  When I started adding a 2nd song, for some reason, the whole project was updated with songs from my iTunes Library automatically, which is not what I desired to do. I deleted the songs multiple times and it

  • IPhoto won't quit! Empty trash with 8000 +....

    Cleaned up iPhoto, deleting, now have 8000+ images in iPhoto trash. Click iPhoto Trash>Empty Trash, and separate upper right "Empty Trash" button... neither one will dump all these photos.... And the program freezes with swirling after the box shows

  • Problem in the program for disply of flight details. webdynpro tutorial 4

    I am new to WebDynpro. I have succesfully learnt the navigation between views (tutorial 3). In the tutorial 4, I wrote the simple select query for displaying the flight details, but I get a runtime error. METHOD IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRI

  • Apple tv light keeps flashing quickly even after restore

    Hi, i wanted to update my apple tv software - but after it was apparently all set, the apple tv stopped working and started flashing quickly. I restored it, though itunes - as i read on line. unfortunately it didn't sort out my problem because once i