What is the best way to look up 2 text criteria and return a number answer

drumfin

New Member
Joined
Apr 21, 2016
Messages
10
Hi

I have to use a daily report to pull in the figures onto a overall spreadsheet.



One of the problems are the section heading will vary I might not always have the same headings e.g. i might not always have anything under golf balls shipped


19.04.16
Golf Balls (Total orders)
10
Order Assigned4
Sent to Picking3
Invoice Raised2
Shipped1
Grand Total10

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



How do I look up the name Fist heading in Column A - Golf Balls, then look up a second condition - "Shipped" under this sub heading, then return the actual figure when I have have similar subheading for other products

DAILY FIGURES SHEET


Orders
19.04.16
Golf Balls (Total orders)
10
Order Assigned4
Sent to Picking3
Invoice Raised2
Shipped1
Grand Total10

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


RUNNING WEEKLY TOTALS SHEET

Orders

Total19.04.1620.04.1621.04.16
Golf Balls
Order Assigned
Sent to Picking
Invoice Raised
Shipped
Buggies
Order Assigned
Sent to Picking
Invoice Raised
Shipped
Grand Total

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



I would be glad of any help on this
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
19.04.16
Golf Balls (Total orders)1001I am interested inGolf Balls10
Order Assigned40
Sent to Picking30
Invoice Raised20how many were shipped10
Shipped10
Grand Total10
Golf Bags (Total orders)10
Order Assigned4formula giving 10
Sent to Picking3=OFFSET($C$1,MATCH(1,$C$2:$C$13,0)+4,-1)
Invoice Raised2
Shipped1
Grand Total10
this helper column
puts a 1 if
cells in A column
contain
"total orders"
and the left
part of the text
equals cell K2
formula giving 1
=IF(ISERROR(SEARCH("Total orders",A2)),"",IF(LEFT(A2,10)=K2,1,""))
the number shipped
ia offset from the 1

<colgroup><col><col span="8"><col><col span="5"></colgroup><tbody>
</tbody>
 
Upvote 0
19.04.16
Golf Balls (Total orders)1001I am interested inGolf Balls10
Order Assigned40
Sent to Picking30
Invoice Raised20how many were shipped10
Shipped10
Grand Total10
Golf Bags (Total orders)10
Order Assigned4formula giving 10
Sent to Picking3=OFFSET($C$1,MATCH(1,$C$2:$C$13,0)+4,-1)
Invoice Raised2
Shipped1
Grand Total10
this helper column
puts a 1 if
cells in A column
contain
"total orders"
and the left
part of the text
equals cell K2
formula giving 1
=IF(ISERROR(SEARCH("Total orders",A2)),"",IF(LEFT(A2,10)=K2,1,""))
the number shipped
ia offset from the 1

<tbody>
</tbody>

Hi thanks for the reply but I'm not sure what I am supposed to do here
 
Upvote 0
For simplicity I used 2 orders. I used a helper column which detects what you are interested in - ie golf balls which was entered in the cell after "I am interested in". The 10 is calculated from the formula I posted. You have to apply this method - if you choose to - to your own data.

Will you only want one item at a time or a list of selected items ?
 
Upvote 0
For simplicity I used 2 orders. I used a helper column which detects what you are interested in - ie golf balls which was entered in the cell after "I am interested in". The 10 is calculated from the formula I posted. You have to apply this method - if you choose to - to your own data.

Will you only want one item at a time or a list of selected items ?


Hi

I will be looking for two items of a time as i will have a need to look up the Golf ball categories and then return a figure for the subcategory golf balls, orders assigned to reuturn a figure of 40 if that makes sense.

Thanks for you help
 
Upvote 0
so use offset match to find Golf Balls and add 1 to drop down to order assigned and go right one to get the number next to order assigned
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,580
Members
449,039
Latest member
Arbind kumar

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