Hi, I am preparing a worksheet to easily enter opening hours into our backend:
Year Month Day Hours
1 2021 12 24 09:00-15:00
2 2021 12 25 Closed
3 2022 1 1 Closed
4
5
6
7
8
9
10
I am using the following concatente formula for the whole sheet:
=CONCATENATE(B2,"-",C2,"-",D2,"=",E2,";",B3,"-",C3,"-",D3,"=",E3,";",B4,"-",C4,"-",D4,"=",E4,";",B5,"-",C5,"-",D5,"=",E5,";",B6,"-",C6,"-",D6,"=",E6,";",B7,"-",C7,"-",D7,"=",E7,";",B8,"-",C8,"-",D8,"=",E8,";",B9,"-",C9,"-",D9,"=",E9,";",B10,"-",C10,"-",D10,"=",E10,";",B11,"-",C11,"-",D11,"=",E11,";")
to get the following output:
2021-12-24=09:00-15:00;2021-12-25=Closed;2022-1-1=Closed;--=;--=;--=;--=;--=;--=;--=;
I can't figure out how to have excel skip a cell if it is blank; i.e. I don't want the "--=;--=;--=;--=;--=;--=;--=;" if someone doesn't fill in all possible days.
See attachment.
Thank you for your help!
Bookmarks