Show Existing Field in IIF function

Faeyren

New Member
Joined
Jun 16, 2017
Messages
2
I am trying to combine an IIF Function with an existing field.


Under18: IIf([Child],[18BD],"")
Shows the 18th Birthday correctly, but I can't seem to add "Under 18 until"


Under18: IIf([Child],"Under 18 until" and [18BD],"")
Shows -1




Under18: IIf([Child],"Under 18 until [18BD]","")
Shows Under 18 until [18BD]



How do I make it so that it shows
"Under 18 until 1/1/2018" ?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi welcome to the board!

The concatenation operator here (also known as the mash operator or squish operator) is the & character, so you should get:

Under18: IIf([Child],"Under 18 until " & [18BD],"")
 
Upvote 0

Forum statistics

Threads
1,225,611
Messages
6,185,994
Members
453,334
Latest member
Prakash Jha

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