Array help under certain condition return the values

Vochey88

New Member
Joined
Jun 12, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,
Just joined this community as would like to improve my excel skills.
I want to make a shopping list from a pivot table of ingredients. Now i've put a drop down to the right of the quantity to put if it's needed or not. Now i want to add the ingredients that are needed to the shopping list starting G7 etc so anything that says "yes" in the D column. I've tried watching youtube videos of array etc but can't really get my head round it could someone point me in the right direction obviously i don't want to add any of the No parts in the list.

I hope that makes sense! Thanks in advance.


Excel.jpg
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
you could use FILTER()
=FILTER(B3:B37,D3:D37="YES")

doubt.xlsx
HIJKL
1
2
3Row LabelsSum of WDV RATE
4HAL3.5100.7833333yes HAL3.5
5HBOA17.334974867no HBOA4
6HBOA439.87802378yes HCL1.30
7HCL0.603.657814114no HCSS3.00
8HCL1.305.14676434yes HFAB3.60
9HCL1.806.940103664no HFMS3.15
10HCSS3.0022.42447662yes HMAT1027
11HCW1000-414.9915385no HMTBE
12HFAB3.6051.7885974yes HR1.5BB1.83
13HFAB4.2052.97228571no HRASIEG3.07
14HFMS3.15130.2968571yes HRL1.22
15HLBOA0.501.208828912no HRLG6.4
16HMAT102713.58111111yes HSWBJ
17HMFBU835.73no HTB3.30H20
18HMTBE17.64875yes HTFC
19HPR526.96449553no HTPGSB0.50
20HR1.5BB1.8379.0851yes HTSW
21HRASIEG2.57505.648no HTUB5
22HRASIEG3.07505.648yes
23HRJWB31.6536079no
24HRL1.2252.85805017yes
25HRL1.5749.71520161no
26HRLG6.4502.8447yes
27HRS4173.1596533no
28HSWBJ1.955555556yes
29HTALC0.951060114no
30HTB3.30H2029.56763158yes
31HTBPAL215.8323529no
32HTFC0.204797688yes
33HTLB17.94518519no
34HTPGSB0.502.50647619yes
35HTPGSB210.37414368no
36HTSW2.248865946yes
37HTUB25.426882688no
38HTUB532.83466846yes
39Grand Total3121.824811no
BBBBB
Cell Formulas
RangeFormula
L4:L21L4=FILTER(H4:H38,J4:J38="yes")
Dynamic array formulas.


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,968
Members
449,095
Latest member
Mr Hughes

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