Got a headache trying to figure this one.

dsims

New Member
Joined
Jul 27, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Ok so i did some data grabbing and I got one page that's full of data. I'm trying to pull data to one sheet based off two criteria. So if you use vlookup i can pull data based off one cell. In this case for example: (a1) apples (b2) red ..now based off my data grabbing there is a lot of apples and many different red but only row has apple then red on the same row ..by using these 2 as reference to pull the number of red apples...sry if this is confusing.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the board,

if you could post some of your data it will help other understand what you are trying to do. as for Vlookup I think it likes your data to be sorted A-Z and then generally finds the first instance of the first condition like the first Apple and not the second one.

There is a link below to the XL2bb add on
 
Upvote 0
Could you adapt something like this?

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 08 08.xlsm
ABCDEFG
1FruitColourNo.FruitColourNo.
2applegreen5applered10
3applepink3applepink3
4peargreen7applegreen5
5pearyellow8pearyellow8
6applered10peargreen7
7bananayellow0
dsims
Cell Formulas
RangeFormula
G2:G7G2=SUMIFS(C$2:C$6,A$2:A$6,E2,B$2:B$6,F2)
 
Upvote 0
Ok so i did some data grabbing and I got one page that's full of data. I'm trying to pull data to one sheet based off two criteria. So if you use vlookup i can pull data based off one cell. In this case for example: (a1) apples (b2) red ..now based off my data grabbing there is a lot of apples and many different red but only row has apple then red on the same row ..by using these 2 as reference to pull the number of red apples...sry if this is confusing.

Welcome to the board,

if you could post some of your data it will help other understand what you are trying to do. as for Vlookup I think it likes your data to be sorted A-Z and then generally finds the first instance of the first condition like the first Apple and not the second one.

There is a link below to the XL2bb add on
So the first pic is the a daily schedule of baseball. It automatically updates. I'm wanting to pull from page 2 the nationals avg for a R (right handed pitcher) so if i do a vlookup it only good for nationals but not for the nationals and R (right handed pitcher)
 

Attachments

  • Screenshot_20230808_105950_Sheets.jpg
    Screenshot_20230808_105950_Sheets.jpg
    33.4 KB · Views: 10
  • Screenshot_20230808_105827_Sheets.jpg
    Screenshot_20230808_105827_Sheets.jpg
    67.5 KB · Views: 10
Upvote 0
Since you are using Excel 365, you should be able to use the new FILTER function.

So, if your other sheet really is named "Page 2", then place this formula in cell E2:
Excel Formula:
=FILTER('Page 2'!D:D,('Page 2'!A:A=Sheet3!A2)*('Page 2'!B:B=Sheet3!C2),"")

See here for more details on this FILTER function: FILTER function - Microsoft Support
 
Upvote 0
Since you are using Excel 365, you should be able to use the new FILTER function.

So, if your other sheet really is named "Page 2", then place this formula in cell E2:
Excel Formula:
=FILTER('Page 2'!D:D,('Page 2'!A:A=Sheet3!A2)*('Page 2'!B:B=Sheet3!C2),"")

See here for more details on this FILTER function: FILTER function - Microsoft Support
I'm pulling from page named "Splits" to page names "LHPRHP"
 
Upvote 0
So then just so what I said and replace "Page 2" with "Splits", i.e.
Excel Formula:
=FILTER(Splits!D:D,(Splits!A:A=Sheet3!A2)*(Splits!B:B=Sheet3!C2),"")
 
Upvote 0
So then just so what I said and replace "Page 2" with "Splits", i.e.
Excel Formula:
=FILTER(Splits!D:D,(Splits!A:A=Sheet3!A2)*(Splits!B:B=Sheet3!C2),"")

So then just so what I said and replace "Page 2" with "Splits", i.e.
Excel Formula:
=FILTER(Splits!D:D,(Splits!A:A=Sheet3!A2)*(Splits!B:B=Sheet3!C2),"")
Got a n/a response.. this one is tricky
 
Upvote 0
Whoops, I forgot to remove the "Sheet3" reference.
Try this:
Excel Formula:
=FILTER(Splits!D:D,(Splits!A:A=A2)*(Splits!B:B=C2),"")
 
Upvote 0
Whoops, I forgot to remove the "Sheet3" reference.
Try this:
Excel Formula:
=FILTER(Splits!D:D,(Splits!A:A=A2)*(Splits!B:B=C2),"")
Still getting a NA
 

Attachments

  • Screenshot_20230808_161303_Sheets.jpg
    Screenshot_20230808_161303_Sheets.jpg
    130.4 KB · Views: 9
  • Screenshot_20230808_161249_Sheets.jpg
    Screenshot_20230808_161249_Sheets.jpg
    47.8 KB · Views: 9
Upvote 0

Forum statistics

Threads
1,223,293
Messages
6,171,265
Members
452,391
Latest member
BHG

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