Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming

I have a macro that creates a pivot table, sort column on

Customer Question
Hi, I have a macro that...
Hi,
I have a macro that creates a pivot table, sort column B on sheet 1 and once column B is sorted in descending order pastes the value in column A to another sheet in column B of that new sheet. I'd like to run it from column B to the end of the worksheet and I am not sure how to do that.
Example
Sheet 1:
Column A Column B Column C
Apple 5 8
Oranges 10 9
Bananas 7 7
What I would like the result to be:
Sheet 2
Column A Column B Column C
Rank
1 Oranges Oranges
2 Bananas Apples
3 Apple Banana
How should I approach something like that? My knowledge of VBA is very low, I mostly record macro and sometimes edit them minimally.
Thanks,
Submitted: 1 year ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 4 minutes by:
6/9/2016
Programmer: Jason Jones, Programmer replied 1 year ago
Jason Jones
Jason Jones, Programmer
Category: Programming
Satisfied Customers: 16,917
Experience: Over 10 years of work experience.
Verified

Hello,

I am the person that will be helping you today. May I ask for a copy of the document or an example of one?

Please, be forewarned that the site is not secure:
- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"
I will be standing by, looking forward to your response.

Thank you,
Jason

Ask Your Own Programming Question
Customer reply replied 1 year ago
do you have an email instead? I'm on my phone
Programmer: Jason Jones, Programmer replied 1 year ago

You may send it to***@******.*** and ask them to send it to me, ***** *****. My screen name is: ComputerTechMaster

Ask Your Own Programming Question
Customer reply replied 1 year ago
done
Programmer: Jason Jones, Programmer replied 1 year ago

Thank you. It may take a while for them to forward it to me. I will be standing by.

Ask Your Own Programming Question
Customer reply replied 1 year ago
No worries, I have time. As you write code, it would be great if you can write comments on what the code is doing so I can follow it. Thank you
Programmer: Jason Jones, Programmer replied 1 year ago

Thank you

Ask Your Own Programming Question
Programmer: Jason Jones, Programmer replied 1 year ago

I received the file and have attached it here.

I will not be able to help.

For this reason, I am opting out of the question and allowing another expert the chance to help.

The next expert will see all that is on this page, so there will be no need to repeat anything.

When another expert picks this up, you will be notified by email.

Thank you for your patience.

- Jason

Ask Your Own Programming Question
Programmer: The-PC-Guy, Software Engineer replied 1 year ago
The-PC-Guy
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 2,038
Experience: Extensive Knowledge in PHP, MYSQL, CSS & Javascript
Verified

are you still looking for help with this?

Ask Your Own Programming Question
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

i would need to see an example file before I could quote a price.

Ask Your Own Programming Question
Customer reply replied 1 year ago
It's attached in the above conversation
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

sorry I never saw a file attached. Can you send again?

Ask Your Own Programming Question
Customer reply replied 1 year ago
Sure, here it is
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

I will take a look and get back as soon as possible can you provide a better description of what you want to do, if possible refer to column letters rows or cells

Ask Your Own Programming Question
Customer reply replied 1 year ago
Sure,I have a macro that creates a pivot table, I included the text there, sort column B on sheet 1 and once column B is sorted in descending order pastes the value in column A to another sheet in column B of that new sheet. I'd like to run it from column B to the end of the worksheet and I am not sure how to do that. the part I am missing is basically the loop part.The sheet I included has a tab with the data and a tab with the sample answerExampleSheet 1:
Column A Column B Column C
Apple 5 8
Oranges 10 9
Bananas 7 7What I would like the result to be:Sheet 2
Column A Column B Column C
Rank
1 Oranges Oranges
2 Bananas Apples
3 Apple BananaHow should I approach something like that? My knowledge of VBA is very low, I mostly record macro and sometimes edit them minimally.Thanks,
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

well your not really using a pivot table. But basically you are looking to take the first sheet, and sort highest to lowest value, then copy the values in column A to column B and repeat the process through all the columns?

Ask Your Own Programming Question
Customer reply replied 1 year ago
you are right, I meant filter not pivots to filter descending order and remove the ones worth zero values
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

you are throwing another wrench in the machine now. Can you explain what you mean by remove ones with 0 values. Wouldn't a descending sort put those at the very end anyway?

Ask Your Own Programming Question
Customer reply replied 1 year ago
but on the side, I don't want to copy the label cherry if there are zero so the way I manually do it is that I add the filter, sort descending and un select zero values and that way only the rows with non zero values are left
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

so if a column has only 1 or 2 of the values that don't get a zero only those values would be copied to the other sheet?

Do I have a complete understanding of what you are trying to accomplish now?

Ask Your Own Programming Question
Customer reply replied 1 year ago
Only the labels in column A corresponding to these values would be copies yes
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

ok got it.

I can certainly create this program, but it is a bit complicated and will take some time.

For this reason I have to increase the price a bit. I am sending you an additoinal service offer, please accept it and I will get started.

Remember I am just a consultant, and I do not control the billing of this site, but the way I understand it is that the additional amount is added to the question cost, so you pay for both.

I think this is fair given the amount of work involved and the price originally selected.

Ask Your Own Programming Question
Customer reply replied 1 year ago
No I think I'm not interested then, I'll do it manually but thanks for your help
Programmer: The-PC-Guy, Software Engineer replied 1 year ago

ok as you wish, if you change your mind you know where to find me

Ask Your Own Programming Question
Ask The-PC-Guy Your Own Question
The-PC-Guy
The-PC-Guy
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 2,038
2,038 Satisfied Customers
Experience: Extensive Knowledge in PHP, MYSQL, CSS & Javascript

The-PC-Guy is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,109 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

2,038 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have gotten WordPress notifications about other
I have gotten WordPress notifications about other registrants to my site with their names and email addresses. What's this mean … read more
UranIT
UranIT
IT Consultant, Network and System Admin
Associate Degree
468 satisfied customers
Design an algorithm that prompts the user to enter a number
design an algorithm that prompts the user to enter a number in the range of 1 through 100 and validates a point … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I need help changing the Flat Icons in my HTML/CSS code for
I need help changing the Flat Icons in my HTML/CSS code for my website. … read more
AnswersByEric
AnswersByEric
Software Developer
Associate Degree
34 satisfied customers
I want to cancel my subscription to Wordpress and your site
I want to cancel my subscription to Wordpress and your site makes it very difficult to talk to anyone. … read more
Roberto
Roberto
Office 365 Ambassador
Did not Graduate
3 satisfied customers
Or whatever it is there where you are) I am trying to fix my
Good morning (or whatever it is there where you are) … read more
GeekGal
GeekGal
IT Director
Bachelors Degree
423 satisfied customers
Trying to trim a batch of files that are mp4s. they are all
Trying to trim a batch of files that are mp4s. they are all around 35 seconds and I want them all at only 10 or 15 seconds. Only playing the first half of each file to make them smaller files with the… read more
The-PC-Guy
The-PC-Guy
Software Engineer
2,038 satisfied customers
Evening. I just need help in writing down a pseudo code for
I just need help in writing down a pseudo code for a self-service checkout system for a supermarket Java Scrip *Java Script … read more
The-PC-Guy
The-PC-Guy
Software Engineer
2,038 satisfied customers
I'm having trouble installing a small python package in
Hi there, I'm having trouble installing a small python package in winpython … read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
I have to set user firstname, middle name and last name in
i have to set user firstname, middle name and last name in class B and then set it eventually to the class a … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
We were running a php web application on an old xp web
We were running a php web application on an old xp web server and the motherboard died. We've upgraded the computer to Window 10, but now the php scripts don't seem to work, except for the index. … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I need to edit my bank statement numbers how to do it? i
I need to edit my bank statement numbers how to do it ? … read more
Cabletech
Cabletech
High School or GED
139 satisfied customers
I can't open an existing excel spread sheet from the file
I can't open an existing excel spread sheet from the file itself. I have to open excel first then select the file to see the data. I'm unable to do a mail merge to word by selecting the data file. I h… read more
robert
robert
Bachelor's Degree
2,594 satisfied customers
How do I write this formula correctly in excel? Excel 2010
Hello Pearl How do I write this formula correctly in excel? … read more
The-PC-Guy
The-PC-Guy
Software Engineer
2,038 satisfied customers
I was hoping for some advice on a machine problem I have
I was hoping for some advice on a machine problem I have been working on. … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I just uploaded a new site in Dreamweaver. My problem is
I just uploaded a new site in Dreamweaver. My problem is that it displays fine in Safari on a Mac but in IE on a PC there is a large space to the right of the agent picture and info. I've tried everyt… read more
lifesaver
lifesaver
Computer Software Engineer
Bachelor's Degree
950 satisfied customers
1. A software company sells a package that retails for $99.
1. A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Design a prog… read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,212 satisfied customers
I am trying to find a way to put in a birthdate and then
I am trying to find a way to put in a birthdate and then calculate when the child will turn 18 … read more
Kris R
Kris R
IT Manager
Computing
2,305 satisfied customers
I need to uninstall roblox studio. 0 now. To solve this to
to solve this to me just uninstall the program the bad image said to uninstall the program … read more
Bryan
Bryan
IT Consultant
8,746 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x