How JustAnswer Works:

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

Ask Richard Your Own Question

Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 15584
Experience:  Over 15 year experience resolving Microsoft Office Issues
Type Your Microsoft Office Question Here...
Richard is online now
A new question is answered every 9 seconds

Problem: Excel wont select cells based on format. Procedure

Resolved Question:

Problem: Excel won't select cells based on format.

Procedure is as follows: (1) In Conditional Formatting, format all cells in List 1 that are equal to any cell in List 2 using a Countif formula (Format = yellow fill color). (2) Click on a cell with yellow fill. (3) In Find & Select - Go To Special - Contitional Formats - Data Validation - Select Same. (4) Click OK.

Excel highlights all cells, not just the yellow fill cells.
Submitted: 7 months ago.
Category: Microsoft Office
Expert:  Richard replied 7 months ago.
Thank you for your question, my name is Richard.

So to clarify, you want Excel to highlight the block of cells that have a yellow fill color correct?

Customer: replied 7 months ago.

I want Excel to highlight only those cells (not necessarily in a "block") with the format that I've caused Excel to apply via conditional formatting. The nature of the format is irrelevant.

Expert:  Richard replied 7 months ago.
Ok, it is relevant though as this is going to need a Macro.

What formating should it be highlighting on?

Customer: replied 7 months ago.

I'm trying to select cells in List 1 that contain nuymbers equal to the cells in List 2. I'm trying to do this using conditional formatting. The format used is irrelevant.
Maybe you should call me. My number is XXXXX Ext 270.

Expert:  Richard replied 7 months ago.
I cannot call sorry.

But basically you will do your conditional formating.

Then you want the formatted cells to be selected correct?

Customer: replied 7 months ago.

Correct. In Conditional Formats, when I click OK after selecting Same under Data Validation, Excel selects all cells in the List, not just the cells containing the selected format.


 


I could send you the esperimenta spreadsheet if this would help.

Expert:  Richard replied 7 months ago.
It would, but this needs to be done with a Macro, thats the only way to achieve this, but you keep saying

The format used is irrelevant.

But it is relevant, as the Macro needs to know the format your going to use. So unless you keep saying this, it will not be possible to do.

Customer: replied 7 months ago.

OK. I understand.


 


By "it would" do you mean that Excel would select all cells or that sending the experimental spreadsheet would help?


 


I tried to attach the spreadsheet to this reply, but it appears to accept only images.

Expert:  Richard replied 7 months ago.
Sending the sheet will help

But I need you to tell me what formatting you will use and on which sheet.

To give me the sheet

- 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"

Thank you
Customer: replied 7 months ago.

Yellow fill is OK for the format.


I will need to be able to do this on any sheet I specify.


 


The file ID is 285830.


 


FYI, I have limited experience with Excel macros.

Expert:  Richard replied 7 months ago.
Ok, this is done.

You can download the file from www.wikisend.com under File ID 483074

I have made a button, so you click this button when you want the Cells with Yello to be selected.

If you have any difficulties at all, please do not hesitate to let me know so I can assist you further

Thank you
Customer: replied 7 months ago.

Sorry, but I can't figure out how to open the file I downloaded from Wikisend.
I found some xml documents, but no Excel documents.

Expert:  Richard replied 7 months ago.
Which version of Excel are you using?
Customer: replied 7 months ago.

2010

Expert:  Richard replied 7 months ago.
ok, is the same version as me.

I uploaded again in a Zip File

ID is 755544

When you download, right click on it and Extract the Excel file, then run it.

Let me know the results please

Thank you
Customer: replied 7 months ago.

I tried it, and it selectes the cells you cormatted, but doesn't select the cell I selected via conditional formatting.


 


Also, how can I transfer the button to other spreadsheets?

Expert:  Richard replied 7 months ago.
First, send me the sheet again with your conditional formatting applied.

As I want to see what the issue is.

Customer: replied 7 months ago.


I tried to upload the file, and it briefly opened the file ID enter window, then closed it and opened the download window before I could enter an ID number.

Expert:  Richard replied 7 months ago.
You dont enter an ID Number, it gives you one on the download window.

Look there for it and give it to me please.

Customer: replied 7 months ago.


Sorry. It's on its way.

Expert:  Richard replied 7 months ago.
No problem
Customer: replied 7 months ago.


The number is XXXXX

Expert:  Richard replied 7 months ago.
Thanks

Test this file please

256172

Let me know the results please

Customer: replied 7 months ago.

I tried tried adding a non-conditional format to the conditional format. Neither formatted cell was selected when the putton was pushed.


 


The file ID number is XXXXX

Expert:  Richard replied 7 months ago.
Can you give me the formula you use for the conditional format please

Customer: replied 7 months ago.

=COUNTIF(List2:B2)>0 (B2 is the first cell in List1.) The formula identifies all cells in List1 that produce a TRUE result.

Expert:  Richard replied 7 months ago.
ok, got it

962854

It only does it on cells highlighted via Conditional formatting, not ones you manually highlight.

Customer: replied 7 months ago.

It works!


 


As I indicated above, I need to be able to apply this to any spreadsheet I select. How can I do this?

Expert:  Richard replied 7 months ago.
ok, you need to copy the Macro to the other sheets / files.

to do this, follow these steps.

In this sheet, press Alt+F11

A new window opens.

double click on the left in Project, Sheet 1

you will see the sub Macro2()

Copy all that text as this is the code.

Then go to the sheet you want to run this on.

Press ALT+F11

Double click the sheet in the Project window top left

Paste the code there and then to run it press F5

this will run the code.

If you want to run it using a button, first unhide the developers tab

To unhide it

Click the File tab.
Click Options.
Click Customize Ribbon.
Under Customize the Ribbon and under Main Tabs, select the Developer check box.

Then click on the Developer Tab

Click Insert, then choose the first one (button)

Draw it on the sheet.

Then assign it to Macro 2 when the window appear.

Then you can run it via the button.

If you have any problems, or would like any additional information or assistance, please do not hesitate to let me know.

And if you can take a second to rate my service, that would be greatly appreciated.

Thank you
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 15584
Experience: Over 15 year experience resolving Microsoft Office Issues
Richard and 3 other Microsoft Office Specialists are ready to help you

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 Customer New York
< Last | Next >
  • 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 Customer New 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!!!! Alex Los 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. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, 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. Esther Woodstock, 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. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    270
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    260
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    120
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    116
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    94
    Bachelor's Degree in Information Technology, Microsoft Certified Professional