Iif function not returning any true values

lindseyaileen

New Member
Joined
Mar 2, 2015
Messages
8
I am trying to create a report that automatically create my spring and fall contracts. I label each semester with a S for Spring and F for fall followed by the the two digit year (ex S15 for Spring 2015). In the table this is a text column.

I am trying to make it so that it if Semester has an S in it the title of the contract will say Spring/Summer YYYY. I've also tried to do this with dates but I haven't found a solution that let me do it by month.

Inside the expression builder I have this written:

<code>IIf([Semester]="S*","Spring/Summer " & Year([StartDate]),"Fall " & Year([StartDate]))<code>

It only ever gives me the false value. Any help would be much appreciated. I'm sure there is a super easy fix that I'm just not seeing.


Also, as a side note: if anyone knows how to make access list every Wednesday's date between a start and end date I would also find that super helpful. (ex. Every Wednesday between now and April 20th would be: 3/18, 3/25, 4/1, 4/8, & 4/15) I haven't been able to find this anywhere and I'm not even sure this is possible.</code></code>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try:
Code:
[COLOR=#333333][FONT=monospace]IIf(Left([Semester],1)="S","Spring/Summer " & Year([StartDate]),"Fall " & Year([StartDate]))[/FONT][/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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