Excel CountIf Formatting Query Adding String to 'Value if False' Parameter

Posted on 2016-08-25
Last Modified: 2016-08-25

I have following excel formula:

=IF(COUNTIF($C30:$C7277,Sheet1!D2) =0,"No Match ", Sheet1!D2)

I would like to add a string to the parameter 'value if false' eg. =IF(COUNTIF($C30:$C7277,Sheet1!D2) =0,"No Match ", "Match" Sheet1!D2) This gives me a formatting error.

How would I go about correcting this?

Thank you.
Question by:Zack
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 18

Expert Comment

ID: 41769827
You don't need th last parameter...try
=IF(COUNTIF($C30:$C7277,Sheet1!D2) =0,"No Match ", "Match")

Author Comment

ID: 41769839
Hi xtermie,

The idea is for me to show the word 'Match' and the matching value alongside it.

Thank you.
LVL 31

Accepted Solution

Subodh Tiwari (Neeraj) earned 500 total points
ID: 41769840
Try it like this....

=IF(COUNTIF($C30:$C7277,Sheet1!D2),"Match "& Sheet1!D2,"No Match")

Open in new window

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.


Author Closing Comment

ID: 41769853
Thank you that fixed it.
LVL 18

Expert Comment

ID: 41769857
a sorry did not understand that :)
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41769867
You're welcome. Glad to help.
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41769870
It happens with all of us. sometimes we misunderstood a simple ask. :)

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question