Hi guys,
I have an issue with this for a couple of days actually..
I have to find in a certain date "column B" if User "column C" changes from the initial user´s number to another one to gave me the first half sales of the day and then obtain the other sales of the other part, this must reestart again when the date changes.
I have to know what was the sales on the two parts of the day and then in column F assign "Mañana" or "Tarde" for second part of day
The User "column D", can be diferent each day.
I attach the excel data to get a better explanation on this.
Thanks for your time on this..
[TABLE="width: 499"]
<tbody>[TR]
[TD]Descripción[/TD]
[TD]Fecha del movimiento[/TD]
[TD]Clave del usuario[/TD]
[TD]Tipo de movimiento[/TD]
[TD]Referencia[/TD]
[/TR]
[TR]
[TD]abrir cajon dinero[/TD]
[TD]01/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012900[/TD]
[/TR]
[TR]
[TD]Mavilan, Lanzoprasol 30 mg C/14 Caps[/TD]
[TD]01/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012901[/TD]
[/TR]
[TR]
[TD]Mexapin, Ampicilina de 500mg c/20 Caps[/TD]
[TD]01/05/2014[/TD]
[TD]6[/TD]
[TD]Ventas[/TD]
[TD]0012902[/TD]
[/TR]
[TR]
[TD]Ulcevit, Ranitidina 300 mg c/10 grageas[/TD]
[TD]01/05/2014[/TD]
[TD]6[/TD]
[TD]Ventas[/TD]
[TD]0012903[/TD]
[/TR]
[TR]
[TD]Telcel, Telcel tiempo aire $31[/TD]
[TD]02/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012904[/TD]
[/TR]
[TR]
[TD]Son's, Clotrimazol Dual 200mg, Óvulos/crema[/TD]
[TD]02/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012905[/TD]
[/TR]
[TR]
[TD]Euroderm, Clotrimazol 2% crema ******l, Crema c/20G[/TD]
[TD]02/05/2014[/TD]
[TD]5[/TD]
[TD]Ventas[/TD]
[TD]0012905[/TD]
[/TR]
[TR]
[TD]Mexapin, Ampicilina de 500mg c/20 Caps[/TD]
[TD]02/05/2014[/TD]
[TD]5[/TD]
[TD]Ventas[/TD]
[TD]0012906[/TD]
[/TR]
</tbody>[/TABLE]
I have an issue with this for a couple of days actually..
I have to find in a certain date "column B" if User "column C" changes from the initial user´s number to another one to gave me the first half sales of the day and then obtain the other sales of the other part, this must reestart again when the date changes.
I have to know what was the sales on the two parts of the day and then in column F assign "Mañana" or "Tarde" for second part of day
The User "column D", can be diferent each day.
I attach the excel data to get a better explanation on this.
Thanks for your time on this..
[TABLE="width: 499"]
<tbody>[TR]
[TD]Descripción[/TD]
[TD]Fecha del movimiento[/TD]
[TD]Clave del usuario[/TD]
[TD]Tipo de movimiento[/TD]
[TD]Referencia[/TD]
[/TR]
[TR]
[TD]abrir cajon dinero[/TD]
[TD]01/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012900[/TD]
[/TR]
[TR]
[TD]Mavilan, Lanzoprasol 30 mg C/14 Caps[/TD]
[TD]01/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012901[/TD]
[/TR]
[TR]
[TD]Mexapin, Ampicilina de 500mg c/20 Caps[/TD]
[TD]01/05/2014[/TD]
[TD]6[/TD]
[TD]Ventas[/TD]
[TD]0012902[/TD]
[/TR]
[TR]
[TD]Ulcevit, Ranitidina 300 mg c/10 grageas[/TD]
[TD]01/05/2014[/TD]
[TD]6[/TD]
[TD]Ventas[/TD]
[TD]0012903[/TD]
[/TR]
[TR]
[TD]Telcel, Telcel tiempo aire $31[/TD]
[TD]02/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012904[/TD]
[/TR]
[TR]
[TD]Son's, Clotrimazol Dual 200mg, Óvulos/crema[/TD]
[TD]02/05/2014[/TD]
[TD]3[/TD]
[TD]Ventas[/TD]
[TD]0012905[/TD]
[/TR]
[TR]
[TD]Euroderm, Clotrimazol 2% crema ******l, Crema c/20G[/TD]
[TD]02/05/2014[/TD]
[TD]5[/TD]
[TD]Ventas[/TD]
[TD]0012905[/TD]
[/TR]
[TR]
[TD]Mexapin, Ampicilina de 500mg c/20 Caps[/TD]
[TD]02/05/2014[/TD]
[TD]5[/TD]
[TD]Ventas[/TD]
[TD]0012906[/TD]
[/TR]
</tbody>[/TABLE]