Solved

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

Posted on 2016-08-25
7
39 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 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 29

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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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 29

Expert Comment

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

Expert Comment

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

776 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