Display all values of the same date vertically

Lifecoachlee

New Member
Joined
May 2, 2014
Messages
36
Hi everyone,

I need some help so badly!

Here's a sample of the project I am working on with.

Sheet 1
----------------------------------------------------------------------

DATE
DEALERPICKUP SITEPRODUCTQUANTITY
1-Apr-14ACAPARROSEX-PASIGL.LAPU300
2-Apr-14CALOSUYEX-PASIGL.LAPU200
3-Apr-14AMSERCOFOB MILLELEF.500
12-Apr-14ASIATICEX-PASIGL.LAPU700
16-Apr-14ACAPARROSEX-PASIGELEF.1500
1-May-14ASMARTEX-PASIGELEF.1500
2-May-14ASMKTGEX-PASIGG.HARV.1500
3-May-14CALOSUYEX-PASIGS.BLEND300
4-May-14AMSERCOFOB MILLL.LAPU200
5-May-14AMSERCOFOB MILLL.LAPU500
5-May-14AMSERCOFOB MILLL.LAPU700
5-May-14AMSERCOFOB MILLG.HARV.1500
5-May-14CALOSUYFOB MILLS.LORD500
13-May-14AMSERCOFOB MILLELEF.300
20-May-14AMSERCOFOB MILLL.LAPU300

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Sheet 2
----------------------------------------------------------------------------
MONTH:APRILDAY:SITE:EX-PASIG
DEALERDATEL.LAPUELEF.ORO EX.G.HARV.S.LORDS.BLENDA.PURP.S.NOODLES.GODD.C.TAILE.DRAGON

<colgroup><col span="11"><col><col></colgroup><tbody>
</tbody>



Here's what I wanted to happen.

Month, Day and Site have their corresponding data validation list where you can pull up the records to display under the table above once criteria are met and automatically add the values of the same products of the same date.

Example:
I will select from the list the ff in the search criteria:

Month: May
Day: 5
Site: FOB MILL

It should display like this:

DEALER DATE L.LAPUELEF.ORO EX.G.HARV.S.LORDS.BLENDA.PURP.S.NOODLES.GODD.C.TAILE.DRAGON

<tbody>
</tbody>
AMSERCO 5-May-14 1200 1500
CALOSUY 5-May-14 500



Please help. Thank you!
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi Aladin,
Thank you for your feedback but I'm not sure if I am understanding you correctly.
I'm still a novice to excel so you can't talk to me with straight technical terms.
I apologized.
Can you please elaborate? Thank you.

Did you see the upload with improvements?

Dynamic named ranges are self-adjusting. Whenever a new record added to or removed from the data, the ranges are all immediately known to the formulas which refer to them.
 
Upvote 0
Did you see the upload with improvements?

Dynamic named ranges are self-adjusting. Whenever a new record added to or removed from the data, the ranges are all immediately known to the formulas which refer to them.

Yes, I did. It's fast.
So, you are saying that whenever I would add a new record I'd have to insert a new row in order for the formula to adjust automatically?
 
Upvote 0
I think I got what you mean now. Sorry, mate.
I had to do a lot of reading about this excel thingy.
I'm coming up with something and will let you see it if I'm doing it right. Thank you for keeping track with me. :D
 
Upvote 0
Hi Aladin,

I tried to create a dynamic named ranged however I'm not getting any luck. I dunno where I am getting wrong.
This is what I did.

From this formula
=IF($A7="","",SUMIFS(BOOKINGS!$E$5:$E$10000,BOOKINGS!$A$5:$A$10000,">=1-"&$G$3,BOOKINGS!$A$5:$A$10000,"<="&$H$3&"-"&$G$3,BOOKINGS!$F$5:$F$10000,"?*|"&$A7&"|FOB MILL|"&B$6))

To this formula:
=IF($A7="","",SUMIFS(BookingQty,BookingDate,">=1-"&$G$3,BookingDate,"<="&$H$3&"-"&$G$3,BookingConcat,"?*|"&$A7&"|FOB MILL|"&B$6))

where:
BookingQty
=OFFSET(BOOKINGS!$e$5,0,0,COUNTA(BOOKINGS!$e:$e),1)
BookingConcat
=OFFSET(BOOKINGS!$f$5,0,0,COUNTA(BOOKINGS!$f:$f),1)
BookingDate
=OFFSET(BOOKINGS!$a$e,0,0,COUNTA(BOOKINGS!$a:$a),1)
 
Upvote 0
Hi Aladin,

I tried to create a dynamic named ranged however I'm not getting any luck. I dunno where I am getting wrong.
This is what I did.

From this formula
=IF($A7="","",SUMIFS(BOOKINGS!$E$5:$E$10000,BOOKINGS!$A$5:$A$10000,">=1-"&$G$3,BOOKINGS!$A$5:$A$10000,"<="&$H$3&"-"&$G$3,BOOKINGS!$F$5:$F$10000,"?*|"&$A7&"|FOB MILL|"&B$6))

To this formula:
=IF($A7="","",SUMIFS(BookingQty,BookingDate,">=1-"&$G$3,BookingDate,"<="&$H$3&"-"&$G$3,BookingConcat,"?*|"&$A7&"|FOB MILL|"&B$6))

where:
BookingQty
=OFFSET(BOOKINGS!$e$5,0,0,COUNTA(BOOKINGS!$e:$e),1)
BookingConcat
=OFFSET(BOOKINGS!$f$5,0,0,COUNTA(BOOKINGS!$f:$f),1)
BookingDate
=OFFSET(BOOKINGS!$a$e,0,0,COUNTA(BOOKINGS!$a:$a),1)

Correction:
where:
BookingQty
=OFFSET(BOOKINGS!$e$5,0,0,COUNTA(BOOKINGS!$e:$e),1)
BookingConcat
=OFFSET(BOOKINGS!$f$5,0,0,COUNTA(BOOKINGS!$f:$f),1)
BookingDate
=OFFSET(BOOKINGS!$a$5,0,0,COUNTA(BOOKINGS!$a:$a),1)
 
Upvote 0
Correction:
where:
BookingQty
=OFFSET(BOOKINGS!$e$5,0,0,COUNTA(BOOKINGS!$e:$e),1)
BookingConcat
=OFFSET(BOOKINGS!$f$5,0,0,COUNTA(BOOKINGS!$f:$f),1)
BookingDate
=OFFSET(BOOKINGS!$a$5,0,0,COUNTA(BOOKINGS!$a:$a),1)

I'd suggest a different route...

BigNum
=9.99999999999999E+307

LrowBooking
=MATCH(BigNum,BOOKINGS!$A:$A)

BookingDate
=BOOKINGS!$A$5:INDEX(BOOKINGS!$A:$A,LrowBooking)

BookingQty
=BOOKINGS!$E$5:INDEX(BOOKINGS!$E:$E,LrowBooking)

BookingConcat
=BOOKINGS!$F$5:INDEX(BOOKINGS!$F:$F,LrowBooking)

IvecBooking
=ROW(BookingDate)-ROW(INDEX(BookingDate,1,1))+1
 
Upvote 0
Is IvecBooking the same as BookingIvec?
and where can I use IvecBooking?

IvecBooking
=ROW(BookingDate)-ROW(INDEX(BookingDate,1,1))+1

BookingIvec
=ROW(BOOKINGS!$B$5:$B$30)-ROW(BOOKINGS!$B$5)+1

 
Upvote 0
Is IvecBooking the same as BookingIvec?
and where can I use IvecBooking?

IvecBooking
=ROW(BookingDate)-ROW(INDEX(BookingDate,1,1))+1

BookingIvec
=ROW(BOOKINGS!$B$5:$B$30)-ROW(BOOKINGS!$B$5)+1


Yes they are same, but we will use IvecBooking for it must be defined in terms of the already booking ranges.

Ivec is by the way an abbrev from integer vector.


Also, how does LrowBooking work?

Lrow is an abbrev of last row. LrowBooking is the current last row of the data area in the BOOKINGS sheet.

The following workbook contains the required definitions, not only involving BOOKINGS, but also WITHDRAWALS and ARRIVALS:
https://dl.dropboxusercontent.com/u/65698317/FLOUR%20MILL%20MARKETING%20SYSTEM%20v8%20dynamic.xlsm

Moreover, all of the formulas are adjusted to refer to the dynamic named ranges...
 
Upvote 0

Forum statistics

Threads
1,215,168
Messages
6,123,408
Members
449,098
Latest member
ArturS75

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