Solved

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

Posted on 2016-08-25
7
36 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
  • 3
  • 2
  • 2
7 Comments
 
LVL 17

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 28

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Closing Comment

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

Expert Comment

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

Expert Comment

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

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will show you how to use shortcut menus in the Access run-time environment.
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now