Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming

I'm having a problem with the conditional formating dates.

Customer Question
I'm having a problem with...
I'm having a problem with the conditional formating for two dates. The > and < functions are not working
Submitted: 1 year ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 5 minutes by:
12/6/2015
Programmer: Aitizaz, Software Engineer replied 1 year ago
Aitizaz
Aitizaz, Software Engineer
Category: Programming
Satisfied Customers: 1,291
Experience: 2 Years of experience with VC#,VC++,C,C++
Verified

Hello and welcome to Just Answer!i am Aitizaz and i will assist you today

can you share the details of the program please?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I have two dates Projected and Actual. I need the actual to be conditionally formatted to be red if it's greater then the projected dated.
Programmer: Aitizaz, Software Engineer replied 1 year ago

which programming language/tool are you using?

Ask Your Own Programming Question
Customer reply replied 1 year ago
IEProjected date 10/15/2015 and actual date is 11/15/2015 so i the cell containing 11/15/2015 should be red.
Customer reply replied 1 year ago
excel 2010
Programmer: Aitizaz, Software Engineer replied 1 year ago

Ok! please share the file here and i will do this for you.

Ask Your Own Programming Question
Customer reply replied 1 year ago
I don't have access to a phone right now
Programmer: Aitizaz, Software Engineer replied 1 year ago

That is not a problem. Please share the excel file so that i may add this feature.

Ask Your Own Programming Question
Customer reply replied 1 year ago
File attached
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK! please give me some time to work on it. i will send a message here when i am done.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

which two columns do you want to compare?

Ask Your Own Programming Question
Customer reply replied 1 year ago
Are you having any luck?
Programmer: Aitizaz, Software Engineer replied 1 year ago

please let me know about the two columns which you want to compare

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Pre-BCAR Meeting and BCAR Mailing?

Ask Your Own Programming Question
Customer reply replied 1 year ago
It' not the columns but rows. I need to have the actual row turn Red if isn't greater then the projected row and green if it's less then.Right now not all information is filled out but hopefully it can be applied to what's there.
Programmer: Aitizaz, Software Engineer replied 1 year ago

which two dates would determine that????

Ask Your Own Programming Question
Customer reply replied 1 year ago
In column A you will see the two different rows. Projected and Actual
Customer reply replied 1 year ago
do you see those?
Customer reply replied 1 year ago
Do you see those rows?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Yes, i do see them. they are in the B column

Ask Your Own Programming Question
Customer reply replied 1 year ago
I need this to be done in all the dates not just column B
Programmer: Aitizaz, Software Engineer replied 1 year ago

you want to compare B12 with B13, C13 with C12 and so on, is this correct?

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

and you want Row 13 Cells to turn RED if they are higher/later date than the cell in row 12, right?

Ask Your Own Programming Question
Customer reply replied 1 year ago
green if it's lower.
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK! please give me some time and i will get back to you with the solution.

Ask Your Own Programming Question
Customer reply replied 1 year ago
any luck?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Almost there. please give me a while.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

May i write a MACRO for this?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I need to apply it alot of sheets.
Can this be used in multiple places?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Yes, you can apply the MACRO across multiple sheets.

Ask Your Own Programming Question
Customer reply replied 1 year ago
okay
Programmer: Aitizaz, Software Engineer replied 1 year ago

Alright, get back to you soon!

Ask Your Own Programming Question
Customer reply replied 1 year ago
Any luck?
Programmer: Aitizaz, Software Engineer replied 1 year ago

i am writing the MACRO for you, so that you may use that in all the sheets. can you give me an hour so that i may complete the task and test before handing it over to you?

Ask Your Own Programming Question
Customer reply replied 1 year ago
sure. I'll follow up back in an hour.
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

The MACRO is complete and is working. let me know when you are up so that i may tell you how to run it. We need to work on the sheet to add the MACRO and remove FORMATTING of the 13th ROW

Ask Your Own Programming Question
Customer reply replied 1 year ago
I'm available now
Customer reply replied 1 year ago
Are you available?
Customer reply replied 1 year ago
Hello? Are you there?
Customer reply replied 1 year ago
Are you able to help me? I really need this answer.
Programmer: Aitizaz, Software Engineer replied 1 year ago

Sorry i was away. Yes i am available.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Send you the solution in a while. please hold on

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

http://wikisend.com/download/440694/Sample (1).xlsm

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Please visit the above link and download the excel sheet

Ask Your Own Programming Question
Customer reply replied 1 year ago
got it
Programmer: Aitizaz, Software Engineer replied 1 year ago

One thing is important. When you apply FORMATTING on a specific column of some kind, NOTHING works on that column. So in order for this MACRO to work, you need to REMOVE formatting on the ROW/COLUMN/CELL where you are applying it

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

to run the MACRO, go to VIEW -> MACRO -> VIEW MACRO and select MACRO1

Ask Your Own Programming Question
Customer reply replied 1 year ago
Okay it pulled up the MAcro
Customer reply replied 1 year ago
In VB
Programmer: Aitizaz, Software Engineer replied 1 year ago

Since i have already run the macro on these dates, it will not change the color any further. please change the dates in the ACTUAL column to see affect of this MACRo

Ask Your Own Programming Question
Customer reply replied 1 year ago
What If i need it to work on a number of cells? you have it programmed just to do that one cell
Programmer: Aitizaz, Software Engineer replied 1 year ago

Yes, you can change the first argument of the CELLS() function. 13 indicates the ROW number

Ask Your Own Programming Question
Customer reply replied 1 year ago
I don't know how to do that
Programmer: Aitizaz, Software Engineer replied 1 year ago

you can ask me anytime if you want to apply the same on any other column

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

please bookmark my page:

http://www.justanswer.com/computer/expert-aitizaz

you can post question anytime by going to this profile page

Ask Your Own Programming Question
Customer reply replied 1 year ago
I need to do it now
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK! please let me know which columns to work on?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I need it to work for every date that is in an actual row
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK! you want to do this in this sheet/workbook?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I will need to apply to to a number of other worksheets.....
Programmer: Aitizaz, Software Engineer replied 1 year ago

I can tell you where to make changes for other worksheet, if you can identify the rows

Ask Your Own Programming Question
Customer reply replied 1 year ago
I need this now. Please start from the beginning and give detailed instructions on how this can be done. I need more information this isn't helpful....
Programmer: Aitizaz, Software Engineer replied 1 year ago

Or if you can allow me, i can do this for you. I can apply the same rule to all the sheets. How many of them are with you ?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I don't have them. Please clear the conditional formating and run in on the whole sheet.
Programmer: Aitizaz, Software Engineer replied 1 year ago

OK! i will run it on the whole sheet and will give it to you in a while.

Ask Your Own Programming Question
Customer reply replied 1 year ago
do you know how long?
Programmer: Aitizaz, Software Engineer replied 1 year ago

15-20 minutes at most

Ask Your Own Programming Question
Customer reply replied 1 year ago
okay thanks
Programmer: Aitizaz, Software Engineer replied 1 year ago

please download the file here:

http://wikisend.com/download/213866/Sample (1).xlsm

Ask Your Own Programming Question
Customer reply replied 1 year ago
Okay. I downloaded it but when I change the numbers it still turns green.
Programmer: Aitizaz, Software Engineer replied 1 year ago

when you turn the numbers, you should RUN the macro again

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

to run the MaCRO, go to VIEW -> MACRO -> VIEW MACRO -> RUN MACRO

Ask Your Own Programming Question
Customer reply replied 1 year ago
everytime we chang a number we will have to re run the macro?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Yes, thats true

Ask Your Own Programming Question
Customer reply replied 1 year ago
now to apply this to other sheets. How does that work?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Anything else you would like to know?

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

That needs to be modified according to the ROW numbers of the ACTUAL column

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

i am going to QUOTE one SET of code here, which works on a single ROW. The rest is a replica of this SET of code with different ROW number

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

If IsEmpty(Cells(13, iCntr)) Then

ElseIf IsDate(Cells(13, iCntr)) Then
If CDate(Cells(13, iCntr)) > CDate(Cells(12, iCntr)) Then
Cells(13, iCntr).Interior.ColorIndex = 3
ElseIf CDate(Cells(13, iCntr)) < CDate(Cells(12, iCntr)) Then
Cells(13, iCntr).Interior.ColorIndex = 4
End If

End If

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Here, in the code snippet above, The function Cells(13,iCntr) indicates 13th ROW and moving columns. By moving columns, i mean the repetition that i have applied at the top (i.e. FOR loop) will traverse all the 25 columns in the 13th ROW

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

the SAME code has been applied to 17th, 20th, 23rd and all the ROWS containing ACTUAL column

Ask Your Own Programming Question
Customer reply replied 1 year ago
Okay so to get this to be applied to a whole worksheet, do I have to chage the code?
Programmer: Aitizaz, Software Engineer replied 1 year ago

for example, in any other sheet, if the ACTUAL column is in the 65th ROW, you need to write

If IsEmpty(Cells(65, iCntr)) Then

ElseIf IsDate(Cells(65, iCntr)) Then
If CDate(Cells(65, iCntr)) > CDate(Cells(64, iCntr)) Then
Cells(65, iCntr).Interior.ColorIndex = 3
ElseIf CDate(Cells(65, iCntr)) < CDate(Cells(64, iCntr)) Then
Cells(65, iCntr).Interior.ColorIndex = 4
End If

End If

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Do preserve SPACE after the first line and also NOTICE the CELLS(64,iCntr) to the RIGHT side of the compare operator

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

64 represents the PROJECTED ROW number

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

anything else i can do for you?

Ask Your Own Programming Question
Customer reply replied 1 year ago
I'm going to try this on all the sheets. If I need help can I reach back out?
Programmer: Aitizaz, Software Engineer replied 1 year ago

Yes!you can send a message anytime you like. Please do rate the answer positive. Thank you very much for coming to just Answer.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Please bookmark this page:

http://www.justanswer.com/computer/expert-aitizaz

you can post question on my profile anytime you have to ask anything.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Thank you!

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 1 year ago

Hello! i just wanted to know if the solution i provided for other sheets worked for you?

Ask Your Own Programming Question
Ask Aitizaz Your Own Question
Aitizaz
Aitizaz
Aitizaz, Software Engineer
Category: Programming
Satisfied Customers: 1,291
1,291 Satisfied Customers
Experience: 2 Years of experience with VC#,VC++,C,C++

Aitizaz 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

789 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have excel 2013. and I'm trying to load the solver add-in.
I have excel 2013. and I'm trying to load the solver add-in. That seems to have been successful, but I don't have and 'analysis group' in the data tab. What's the problem? Cheers, … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I need Excel help that is advanced in nature... In Excel, I
Hello, I need Excel help that is advanced in nature... … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I am trying to make a formula in an excel cell that will
I am trying to make a formula in an excel cell that will state if the value in cell L2 is 2 than the range in cells J2, J3 ,J4 is 50 to 58, if the value in L2 is 3 Than the range in J2, J3, J4 is 55 t… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I have an Excel question how does this work? Excel 2010. I
I need a formula but it would be easier to show you what I need rather than trying to explain it is there a way I can do that? … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,207 satisfied customers
Changed formatting resets every time excel is opened. Excel
changed formatting resets every time excel is opened … read more
R LAFAYETTE
R LAFAYETTE
Intel Technology Provider 2017 GOLD
29 satisfied customers
We have a schedule (excel/VBA) that was created by a person
we have a schedule (excel/VBA) that was created by a person no longer at our company. It has multiply tabs and at the time it worked great. Now we need to add product however it does not have the simp… read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
I just have one question on excel. Excel 2016. I need some
HI I just have one question on excel JA: What programs and versions are you using? Customer: excel 2016 JA: What is your ideal outcome? How can we solve this for you? Customer: I need some tip tips st… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
I need some help with an excel formula. Microsoft excel
I trying to use an index and match function using three criteria to pull a value off of a chart … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I know that Excel is a math based program. Is there a way to
I know that Excel is a math based program. Is there a way to learn it with limited math skills? … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,207 satisfied customers
I need help with excel function. Excel 2013. I have a math
i have a math problem and i have been posting in many sites … read more
John Lohr
John Lohr
Owner / Technology Specialist
Teaching Certification
372 satisfied customers
When accessing Excel, I receive the following message:
When accessing Excel, I receive the following message: "Microsoft Office cannot verify the license for this product." I cannot get past this message. What do I need to do. … read more
Bryan
Bryan
IT Consultant
8,745 satisfied customers
I cannot use save as in Excel. It sends a message of Excel
Hi, I cannot use save as in Excel. It sends a message of Excel is not responding and then I have to restart the program. … read more
Shefin
Shefin
Technical Support Executive
Engineering Diploma
218 satisfied customers
I am looking for some excel help, excel 2016, to get an
to get an excel function that will filter results from a data set based on specific criteria and then populate the filtered data set on a different worksheet. Ideally, I want to have 4 separate data sets on a separate worksheet that meet specific criteria from a master list … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
What are your rates? Excel 10, Can You write Excel 10
Can You write Excel 10 Program for calculating: A + B - C = D for a Table of numbers consisting 3 columns of 10 rows, each row having 10 different numbers, and compute each and every possible combination, 1000 combinations ? … read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,109 satisfied customers
Have an excel formula issue, Excel 2016, need the fomula to
have an excel formula issue JA: What programs and versions are you using? Customer: Excel 2016 JA: What is your ideal outcome? How can we solve this for you? Customer: need the fomula to work JA: Anyt… read more
Russell H.
Russell H.
computer technology consultant
Vocational, Technical or Trade Scho
775 satisfied customers
I want to install my excel, I accidently unistalled my excel
I accidently unistalled my excel and now I want to re-instal … read more
ChrisC
ChrisC
PC Technician
Associate Degree
659 satisfied customers
It's an excel question. Microsoft Excel Office 2016, I am
I am having trouble creating a formula and I am unsure how to go about it. The formula help within Excel is not understanding my question. … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,207 satisfied customers
Suddenly my Excel 2007 Excel will not reload off the
Suddenly my Excel 2007 Excel will not reload off the original installation disk. I tried to do that because Solver in Excel quit working and said it had to be reinstalled. Any idea what's wrong? … read more
UranIT
UranIT
IT Consultant, Network and System Admin
Associate Degree
453 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