Display 0 when cell contains certain letters

barbara58554

New Member
Joined
Dec 7, 2016
Messages
4
I'm working on an attendance form that has columns showing P, T, W, etc that indicate if the child was in school or why the child was absent. A couple columns over are 3 columns showing if the child was served breakfast, lunch and/or snack. I want the days the child was gone to automatically fill with a 0 in the breakfast, lunch, snack columns. I have been trying to figure this out most of the day and finally seek your assistance.

Hope this visual helps:

M
TWTCHILD'S
NAME
BREAKFASTLUNCHSNACKBLSBLSBLS
APPPI want this column to display 0
if A, T, OR W is in 1st column
I want this column
to display 0
if A, T, OR W is in 1st column
I want this column
to display 0
if A, T, OR W​
is in 1st column​
I want this column
to display 0
if A, T, OR W is in 2ND column​
I want this column
to display 0
if A, T, OR W is in 2ND column​
I want this column
to display 0
if A, T, OR W is in 2ND column​
I want this column
to display 0
if A, T, OR W is in 3RD column​
I want this column
to display 0
if A, T, OR W is in 3RD column​
I want this column
to display 0
if A, T, OR W is in 3RD column​
I want this column
to display 0
if A, T, OR W is in 4TH column​
I want this column
to display 0
if A, T, OR W is in 4TH column​
I want this column
to display 0
if A, T, OR W is in 4TH column​

<tbody> </tbody>
 
Dave,

It's Monday morning and I was so excited when I saw the response to my question. I feel like doing the victory dance around my office! This worked exactly the way I wanted. Thanks so much.

Don't suppose you have a formula to stop the snow from falling for a while in North Dakota?!?!? We have had almost 30 inches of snow in the last couple weeks!

Barbara
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi Barbara.

Im glad it worked for you.
I guess this will help things run easier at school

enjoy the snow.

Dave.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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