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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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
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

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
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)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
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
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

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
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)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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