• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Max Value Header Name And Value in vba |VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Max Value Header Name And Value in vba |VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosMax Value Header Name And Value in…
sp_PrintTopic sp_TopicIcon
Max Value Header Name And Value in vba
Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
1
January 30, 2023 - 8:56 pm
sp_Permalink sp_Print sp_EditHistory

i have required header name and corresponding data trough the vba
i am attached excel fie and describe my problem
thanks in advance

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
2
January 31, 2023 - 5:32 pm
sp_Permalink sp_Print

Goodday, please attach the file using the upload button.

Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
3
January 31, 2023 - 8:17 pm
sp_Permalink sp_Print

sorry sir but i am already attached my file

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
4
February 1, 2023 - 5:15 pm
sp_Permalink sp_Print

Well, then there is something seriously wrong with your file it's unreadable
Screenshot-2023-02-01-081353.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot-2023-02-01-081353.png (353 KB)
Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
5
February 1, 2023 - 7:47 pm
sp_Permalink sp_Print

sorry sir I am new file attached........

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
6
February 2, 2023 - 5:00 pm
sp_Permalink sp_Print

Sorry, the file is not readable, no difference, I have no idea how or what you are doing.

Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
7
February 2, 2023 - 9:00 pm
sp_Permalink sp_Print

sorry sir but
I don't know why the file is not uploading Properly so i am attached two images 1 is my data and second is my result
my problem is Project wise fM range max value which fm in data then sheet column header name to print in column A and corresponding data in B if max value is greter than five then print in next slot. Every FM No. start in 25 row gap.
I am created micro but is countinues row no 18 to data range. and my code is

Sub FindMaxVal()
Dim i As Integer, FindProj, FindMaxVal As Variant, RowNo As Long
FindProj = Application.Match(Sheets("Result").Range("G1").Value, Sheets("Data").Range("A:A"), 0)
FindMaxVal = WorksheetFunction.Max(Sheets("Data").Range("B" & FindProj & ":AE" & FindProj))
RowNo = 18
For i = 2 To 31
If Sheets("Data").Cells(FindProj, i).Value = FindMaxVal Then
Sheets("Result").Cells(RowNo, "I").Value = Sheets("Data").Cells(1, i).Value
Sheets("Result").Cells(RowNo, "J").Value = Sheets("Data").Cells(FindProj, i).Value
RowNo = RowNo + 1
End If
Next i
End Sub

this code is continuously given data.
I have every 5 solot in after first FM1 to FM5 is first slot and if data is data long then data is ever five slot to pace properly. Data-sheets.pngImage Enlarger

result-sheets.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Data-sheets.png (154 KB)
  • sp_PlupImage result-sheets.png (75 KB)
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 440
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
8
February 3, 2023 - 12:00 am
sp_Permalink sp_Print

@Hans Hallebeek. You can right-click on the file (e.g. in post # 5) select "Save link as". It than allows you to save the file to a folder on your computer. I've had similar problem with txt and csv files uploaded to the Forum.

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
9
February 3, 2023 - 4:59 pm
sp_Permalink sp_Print

@Riny van Eekelen: I must confess I did not think of that option, the link mislead mme and it never happened with other files.
Thanks for the tip.
Hans

Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
10
February 5, 2023 - 3:33 pm
sp_Permalink sp_Print

Pease help! me sir i am stuck in my project..........

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
11
February 6, 2023 - 6:08 pm
sp_Permalink sp_Print

Try this one, select a project name and then click the blue arrow on the left

Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
12
February 6, 2023 - 7:30 pm
sp_Permalink sp_Print

thanks sir

i have only max value in a result sheet and corresponding fm Number not print in less no and NA and i am some row is hide my result slot is fixed.
Like Project A is max value is 6 then Fm no start fm1 to 17 but Project B is max value is only fm13, fm16, fm 21, fm28
Like that

my first slot start at row no 17 , second is row no 42 , third is 67, fourth is 92 and fifth is 117

thanks ones again for support to my problem..............................

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 70
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
13
February 6, 2023 - 11:08 pm
sp_Permalink sp_Print

I don’t understand what you want but maybe the macro can help you work it out, it’s quite simple to include exclusions and actions, you z’n Taylor it to your needs
A clear and concise explanation will get you answers you expect

Avatar
vasim khatik
Member
Members
Level 0
Forum Posts: 26
Member Since:
July 15, 2018
sp_UserOfflineSmall Offline
14
February 7, 2023 - 5:03 pm
sp_Permalink sp_Print

thank sir given to solution my query is finally solve.  

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

Member Stats:
Guest Posters: 49
Members: 31875
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.