?
Solved

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

Posted on 2016-08-25
7
Medium Priority
?
49 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 32

Accepted Solution

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

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

Open in new window

0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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 32

Expert Comment

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

Expert Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

777 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