Copy Value of Cell from other Rows based on Multiple Criterias

pbsmith82

New Member
Joined
May 22, 2019
Messages
8
I am having trouble setting some automation. It works best if I explain I have three types of "Products" these products can be purchased Separately or as a collection. The can be "Completed" at different times. I collect the data as separate projects, but need to see them as a collection also ........ With that said Here is what I am trying to do.

If Collection is a Yes, I want Product A's , from Collection A, Active date Pasted to Cell X

AND

If Collection is a Yes, I want Product B's , from Collection A, Active date Pasted to Cell Y

AND

If Collection is a Yes, I want Product B's , from Collection A, Active date Pasted to Cell Z

See Image Below ....

Capture567.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Guessing from your description Column S is the Company, T is the product, U is Collection, V is collection code, W is active Date. =IF(AND(U2="Yes",T2="Software"),W2,"") This formula in Collection Software Active date will put all things that are yes in collection and software into the the Collection software Active date. Same idea but with hardware for this =IF(AND(U2="Yes",T2="Hardware"),W2,"") . This one will do Billing =IF(AND(U2="Yes",T2="Billing"),W2,"").

Now if you want to specifcy Company A, here are the three formulas for each in order of software, collection, and then billing

=IF(AND(U2="Yes",T2="Software",S2="Company A"),W2,"")

=IF(AND(U2="Yes",T2="Hardware",S2="Company A"),W2,"")

=IF(AND(U2="Yes",T2="Billing",S2="Company A"),W2,"")
 
Upvote 0
Cross posted https://www.excelguru.ca/forums/sho...l-from-other-Rows-based-on-Multiple-Criterias

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Thanks Fluff, Sorry About that and Jon .........


Guessing from your description Column S is the Company, T is the product, U is Collection, V is collection code, W is active Date. =IF(AND(U2="Yes",T2="Software"),W2,"") This formula in Collection Software Active date will put all things that are yes in collection and software into the the Collection software Active date. Same idea but with hardware for this =IF(AND(U2="Yes",T2="Hardware"),W2,"") . This one will do Billing =IF(AND(U2="Yes",T2="Billing"),W2,"").

Now if you want to specifcy Company A, here are the three formulas for each in order of software, collection, and then billing

=IF(AND(U2="Yes",T2="Software",S2="Company A"),W2,"")

=IF(AND(U2="Yes",T2="Hardware",S2="Company A"),W2,"")

=IF(AND(U2="Yes",T2="Billing",S2="Company A"),W2,"")

If I am understanding your Formula Correctly it will only evaluate the conditions of that row ....... I would need it to evaluate the conditions of other rows with the matching criteria ..... See Images Below .....

Capture5677.png


Capture56777.png



I've attached a Sample Workbook of it this as well ..... http://phillipbsmith.com/wp-content/uploads/2019/05/Excel-Guru.xlsx
 
Upvote 0
I'm a little bit confused. Looking at your desired results in IHL it looks like you want every cell filled regardless of how many times IH & Lite is a product, Then in CRM you have the same date listed three times with spacing. Mil active date also has more cells filled then you have actual mil products and dates. What is with the seemingly random spacing and repeating of the dates?
 
Upvote 0
How about

Excel 2013/2016
HIJ
231/10/201806/03/201911/03/2019
328/10/201813/03/2019
428/10/201813/03/2019
513/03/2019
613/03/2019
731/10/201806/03/201911/03/2019
831/10/201806/03/201911/03/2019
Sheet1
Cell Formulas
RangeFormula
H2{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="MIL Site"),0)),"")}
I2{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="CRM"),0)),"")}
J2{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="IH & Lite CMB"),0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I'm a little bit confused. Looking at your desired results in IHL it looks like you want every cell filled regardless of how many times IH & Lite is a product, Then in CRM you have the same date listed three times with spacing. Mil active date also has more cells filled then you have actual mil products and dates. What is with the seemingly random spacing and repeating of the dates?


Because Of Product & Project Information:
PRODUCT A: (Composed of three different Projects)​


  • [*=1]MIL Site | ID: 10071E
    [*=1]CRM | ID: 10071E
    [*=1]IH & Lite CMB | ID: 10071E

PRODUCT B: (Composed of Two different Projects)

  • MIL Site | ID: 10071E.1
  • IH & Lite CMB | ID: 10071E.1

    So I need the all the Associate dates for the other Associate Projects to be listed and if there isn't an associated project then it would be blank.

 
Upvote 0
I've tried these but no matter what I do It still returns the "" (error).

How about
Excel 2013/2016
HIJ

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]28/10/2018[/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]28/10/2018[/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]5[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]6[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]7[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

[TD="align: center"]8[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]H2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="MIL Site"),0)),"")}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]I2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="CRM"),0)),"")}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]J2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="IH & Lite CMB"),0)),"")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Did you confirm the formualae with Ctrl Shift Enter?
 
Upvote 0
Never Mind I did Get it to work Thanks you!!!!!!

How about
Excel 2013/2016
HIJ

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]28/10/2018[/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]28/10/2018[/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]5[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]6[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13/03/2019[/TD]

[TD="align: center"]7[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

[TD="align: center"]8[/TD]
[TD="align: center"]31/10/2018[/TD]
[TD="align: center"]06/03/2019[/TD]
[TD="align: center"]11/03/2019[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]H2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="MIL Site"),0)),"")}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]I2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="CRM"),0)),"")}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]J2[/TH]
[TD="align: left"]{=IFERROR(INDEX([Active Date],MATCH(1,([Enterprise Yes/No]="Yes")*([Enterprise ID:]=[@[Enterprise ID:]])*([Product]="IH & Lite CMB"),0)),"")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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