Need help with complex formula

Letto4135

New Member
Joined
May 25, 2017
Messages
19
Looking for a master to show me the ways.


I can't figure out a formula and its difficult to explain..

I have a large table of data where I have several orders and I want to organize them by most recent.....
And here's the complicated part..
There are several orders I don't want at all.
Each order has a transaction type, material type, product description, date, and location it is going.
I need a formula or series of to narrow the info down specifically by each until i get exactly what i want.
I want to pull out the 18 most recent orders to put the data into a graph so not only is it very specific data it's non repeating...

If your'e a master willing to attempt to help I will email you the spreadsheet if you don't have a problem with it because at this point, I'm lost.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
hello

suggest you post some sample input & results data with specific information on how to get the result from the inputs

from the intitial post, it sounds like a query does what you want (so without formulas). so something like below.
SELECT TOP 18 fields
FROM table
WHERE criteria
ORDER BY datefield DESC
 
Upvote 0
hello

suggest you post some sample input & results data with specific information on how to get the result from the inputs

from the intitial post, it sounds like a query does what you want (so without formulas). so something like below.
SELECT TOP 18 fields
FROM table
WHERE criteria
ORDER BY datefield DESC


Time to google making an excel query i guess. Lol
That does sound like it.. best example I can give of a formula would be if( and( this, this, this) give me k value of if( and) but don't repeat..
=if(and(g:g=h12,b:b=h13,c:c="inventory out"),large(a:a,1),"") ??? I know it doesn't work but that's the way I think about it working..

I am bad at the sample input and results but here goes

Date | order | amount | part desc | part # | trans desc

12/13/16 | 43E5B | 165 | 1.1mm something | something | inventory out
12/13/16 43E5B | 12.5 | 1.1mm something | something | scrap
12/1/16 | 446B7 | 289 | 1.1mm something | something | inventory out

So it looks for 1.1mm something, something and inventory out without repeating order # showing

43E5B
446B7

Reality, I'm looking at over 18,000 entries on this particular part desc. with 100 different locations, another 50 transaction descriptions, and probably a few thousand order numbers
 
Upvote 0
Are you looking for something like this:


Unknown
ABCDEF
1DateOrderAmountPart DescPart #Trans Desc
213/12/201643E5B1651.1Mm SomethingSomethingInventory Out
313/12/201643E5B12.51.1Mm SomethingSomethingScrap
401/12/2016446B72891.1Mm SomethingSomethingInventory Out
5
6
71.1Mm SomethingSomethingInventory Out43E5B
8446B7
9
10
Sheet2
Cell Formulas
RangeFormula
D7{=IFERROR(INDEX($B$2:$B$4,MATCH(LARGE(IF(($A$7&$B$7&$C$7)=($D$2:$D$4&$E$2:$E$4&$F$2:$F$4),$A$2:$A$4),ROWS(D$7:D7)),$A$2:$A$4,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Yes, that works, but it still repeats the order numbers when there are multiple ones with the same order #...
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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