Help with macro

bromano

New Member
Joined
May 17, 2010
Messages
17
Hello All. thanks for reading my problem.

I have a workbook with one sheet (called 'data') that is a calender with staff assignments. for example:
DAY DATE MONTH DAY CALL NIGHT CALL NOTES
tues 1 jan Sam Sue
wed 2 jan Sue Sam Leaves early

I have a second sheet (called "GW_calendar) where each row looks at the first sheet and combines the data so I end up with:
"Jan 1- DAY CALL= SAM; NIGHT CALL=SUE; NOTES: "
"Jan 2 -DAY ALL=Sue; NIGHT CALL=Sam; Notes: Leaves early"

I need a formula that can recognizes that the first NOTES cell is empty and just ignore it so I don't end up with the "NOTES:" blank entry.

Hope this all makes sense and someone can help.
Many thanks in advance!;)
//bill
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
assuming ur Notes are in column F. and the rest of data column A,B,C,D,E. try this.

=IF(F2="",CONCATENATE(A2,B2,C2,D2,E2),CONCATENATE(A2,B2,C2,D2,E2,F2))


Hello All. thanks for reading my problem.

I have a workbook with one sheet (called 'data') that is a calender with staff assignments. for example:
DAY DATE MONTH DAY CALL NIGHT CALL NOTES
tues 1 jan Sam Sue
wed 2 jan Sue Sam Leaves early

I have a second sheet (called "GW_calendar) where each row looks at the first sheet and combines the data so I end up with:
"Jan 1- DAY CALL= SAM; NIGHT CALL=SUE; NOTES: "
"Jan 2 -DAY ALL=Sue; NIGHT CALL=Sam; Notes: Leaves early"

I need a formula that can recognizes that the first NOTES cell is empty and just ignore it so I don't end up with the "NOTES:" blank entry.

Hope this all makes sense and someone can help.
Many thanks in advance!;)
//bill
 
Upvote 0
assuming ur Notes are in column F. and the rest of data column A,B,C,D,E. try this.

=IF(F2="",CONCATENATE(A2,B2,C2,D2,E2),CONCATENATE(A2,B2,C2,D2,E2,F2))

Thanks, Fackouch...
I tried it and it's returning the contents of a2:e2 but not F2 when there's something in that cell.

/b
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,520
Members
448,968
Latest member
Ajax40

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