473,662 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Excel VBA display the most frequent value in a range that changes based on blank row

82 New Member
Hi, Excel VBA question. I have a spreadsheet that shows employee types per company. Each company has a blank row after the last employee. I need to write some code that will look at column H (the employee type column) and insert the most shown employee type for that company. Does anyone have any idea on how I can do this? Thanks in advance.
Nov 15 '13 #1
3 1359
ADezii
8,834 Recognized Expert Expert
In this case, inserting a graphic of the Spreadsheet, or attaching it with some sample data would be most helpful.
Nov 16 '13 #2
barbarao
82 New Member
A sample had been given the other day.
Nov 18 '13 #3
barbarao
82 New Member
Ooppp..guess i didn't post the sample. Here it is.

Company# CoName AgesServed Web Specialty Second Specialty TaxID JobTitle JOBID

793 AFC Adults and Children TRUE 2 Temp 08
793 AFC Adults and Children TRUE 2 Clerk 50
793 AFC Adults and Children TRUE 2 Clerk 50
793 AFC Adults and Children TRUE 2 Clerk 50
793 AFC Adults and Children TRUE 2 Clerk 50
793 AFC Adults and Children TRUE 2 Janiter 48
793 AFC Adults and Children TRUE 2 Manager 99

539 OGAssoc Adults Only TRUE 55 Clerk 50
539 OGAssoc Adults Only TRUE 55 Trainee 16
539 OGAssoc Adults Only TRUE 55 Trainee 16
539 OGAssoc Adults Only TRUE 55 Trainee 16
Nov 18 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2754
by: D Denholm | last post by:
I am a Access newbie... Hopefully somebody can help me figure this out. I have a database that looks like: Asset Economic Minimum ----- ---------------- 10555 320 10555 320 10555 320
1
1370
by: Shapper | last post by:
Hello, I have a working DataReader on a web page. I used it on a DataGrid. Something like: id name city 1 John London 2 Mary New York How can I display the value from one of the records in my page?
0
1404
by: Xavier | last post by:
hello, how can i display the returned value of a SqlDataSource in a Label <asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:Pubs %>" ID="SqlDataSource1" runat="server" SelectCommand="SELECT Top 1 LastName,Name FROM mytable where ......"></asp:SqlDataSource>
3
3150
by: technocraze | last post by:
Hi community experts, May I knw whether is it possible to display the corresponding value of the second textbox based on the user input in the first textbox? This means that once the user enters the value of first textbox - S1, the corresponding matching value based on first textbox will be displayed in the second textbox automatically. I have tried using the AfterUpdate() event of textbox1 control to trigger this scenario but doesnt seem...
2
2539
by: manojdagar | last post by:
Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int GetFrequency(int list)
1
1173
by: Tony Bansten | last post by:
Sorry for this newbie question, but how do I display a variable value from a *.vbs script in a dialog box and - secondly - how to read a user input from a dialog entry field into a *.vbs script variable? Tony
0
1626
by: =?ISO-8859-1?Q?J=F6rg_Battermann?= | last post by:
Hello there, Is there any -reliable- way to extract certain, given ranges in excel files into either a picture (each) or into proper xhtml? I am asking because I am currently automating a document transformation from several hundred thousand xhtml datasets into a .pdf via proper xml + xsl-fo transformation, but one of the constraints is to open all file:// links that point to .xls files to appear in the .pdf, too. Now what we had in...
2
2600
by: sumanta123 | last post by:
Dear Sir, In my develpment i am getting stuck for a senario.Kindly please help me for it. Everytime we give the request we get the response of 8 records and its corresponding value. Then next button will display more and more records if it is availbale in data base. I am attachcing the screen shoot of my problem CMP is a column in the this record.
0
1751
by: grego9 | last post by:
I have a bit of visual basic code in an excel spreadsheet that I need some help with. I am attempting to search a file called TO Cancellations2.xls for counterparty names and for each counterparty name that it finds that matches the list of counterparties on the "counterparties" sheet of a file called Time Option Template WIP.xls I want the whole line copied and pasted into a new excel worksheet that should have the counterparty name and then...
1
1268
by: Kevin McLaren | last post by:
Hi I have an auditing script that creates a before and after value to records updated via a form and places them into another table. This way changes to the database can be tracked. It works fine, until a blank textbox field is updated to contain a value. So if the field being updated doesn't contain a value, it doesnt put the before and after values into the audit table. Here is the code: Sub AuditTrail(frm As Form, recordid As Control)...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.