IF combined with additional text in quotes

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi all,

I am using the below formula, which includes a quoted parts that adds brackets and an x to the result of the second part of my formula.

=IF('All Completed VC'!$B$4="","",('All Completed VC - Levels'!N5 & " (x"&'All Completed VC - Levels'!B5))&")"

The result looks like this: Level 1 (x1)

Without the extra quoted parts it would look like this: Level 11

My problem is this, when 'All Completed VC'!$B$4 does equal "", the cell stills displays as follows: (x)

I want it so that when 'All Completed VC'!$B$4 does equal "", the cell appears empty. Currently, it takes away the actual formula results, but the additional text remains and I want to remove it for the "" results.

Thanks in advance!

Olly.
 
did you try my formula
=IF('All Completed VC'!$B$4="","",'All Completed VC - Levels'!N4 & " (x"&'All Completed VC - Levels'!B4&")" )

works
see cell B92
coloured light orange/pink

clear the cell in B4 and it goes blank

 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
This is now working, thanks everyone.

I used this formula: =IF('All Completed VC - Levels'!B4="","",'All Completed VC - Levels'!N4 & " (x"&'All Completed VC - Levels'!B4&")" )

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top