Solved

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

Posted on 2016-08-25
7
43 Views
Last Modified: 2016-08-25
Heyas,

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.
0
Comment
Question by:Zack
[X]
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
7 Comments
 
LVL 18

Expert Comment

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

Author Comment

by:Zack
ID: 41769839
Hi xtermie,

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

Thank you.
0
 
LVL 30

Accepted Solution

by:
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

0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Closing Comment

by:Zack
ID: 41769853
Thank you that fixed it.
0
 
LVL 18

Expert Comment

by:xtermie
ID: 41769857
a sorry did not understand that :)
0
 
LVL 30

Expert Comment

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

Expert Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Outlook Free & Paid Tools
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

730 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