Conversation with Merlin ยท Fri Dec 08 2023

i have data as fallowing sheet 1 (Master data) Order ID ,Date, QTY, Title, SKU, Brand Sheet 2 (Received skus from vendor) Order ID ,Date, QTY, Title, SKU, Brand Sheet 3 (need to assigned) need to generate a formula to assign order ids in sheet 3 based on sku received in sheet 2 with first in first out modal

To assign order IDs in Sheet 3 based on the SKUs in Sheet 2 using a first in, first out (F) model, you can use the following steps:

Step 1: Identify the earliest date for each SKU in Sheet 2- In Sheet 2, use a formula like MINIFS to identify the earliest date for each SKU. For example, if your SKUs start at column B and the dates start at column C, can use a formula like this in Sheet 2, cell G2: =MINIFS($C$2:$C100,$E$2:$E$100,E2) and drag it down to apply to all rows.

Step2: Match the earliest date and SKU in Sheet 1

  • In Sheet 1, you can use a formula VLOOKUP or INDEX-MATCH to match the earliest date for each SKU from Sheet with the corresponding Order ID in Sheet 1.

For example, if data in Sheet 1 starts at column A and the SKUs start at column E, you can use a formula like in Sheet 1, cell F2: =INDEX($A$2:$A100, MATCH(1,($E$2:$E$100=E2)*B$2:$B$100=G2),0))

This formula searches for the SKU and earliest from Sheet 2 in Sheet 1 and returns the corresponding Order ID.

Step 3 Apply the FIFO logic to Sheet 3

  • In Sheet 3, you can a formula similar to the one used in Step 2 to match the earliest date and with the corresponding Order ID from Sheet 1.

By following these steps, you can assign order in Sheet 3 based on the SKUs received in Sheet using the FIFO model. This approach ensures that the earliest received SKUs are assigned to the corresponding order IDs first.

i have skus data in column e in all sheet

Great, now that I understand that the SKUs data is located in column E across all sheets, I can adjust the previous response accordingly.

To assign order IDs in Sheet 3 based on the SKUs in Sheet 2 using a first in, first out (FIFO) model where the SKUs data is in column E in all sheets, you can follow these steps:

Step 1: Identify the earliest date for each SKU in Sheet 2 In Sheet 2, use a formula like MINIFS to identify the earliest date for each SKU. For example, if your SKUs are in column E and the dates are in column B, you can use a formula like this in Sheet 2, cell F2: =MINIFS($B$2:$B$100,$E$2:$E$100,E2) and drag it down to apply to all rows.

Step 2: Match the earliest date and SKU in Sheet 1 In Sheet 1, you can use a formula like VLOOKUP or INDEX-MATCH to match the earliest date for each SKU from Sheet 2 with the corresponding Order ID in Sheet 1.

For example, if your data in Sheet 1 starts at column A and the SKUs are in column E, you can use a formula like in Sheet 1, cell F2: =INDEX($A$2:$A$100, MATCH(1,($E$2:$E$100=E2)*$B$2:$B$100=G2),0).

This formula searches for the SKU and earliest date from Sheet 2 in Sheet 1 and returns the corresponding Order ID.

Step 3: Apply the FIFO logic to Sheet 3 In Sheet 3, you can apply a similar formula to match the earliest date and SKU with the corresponding Order ID from Sheet 1.

By following these steps, you can assign order IDs in Sheet 3 based on the SKUs received in Sheet 2 using the FIFO model, ensuring that the earliest received SKUs are assigned to the corresponding order IDs first.

i have data like column A : Order id column B : Date column C : QTY column D : Titil column E : SKU

Based on the provided data structure:

Column A: Order ID Column B: Date Column C Quantity (QTY) Column D: Title Column E: SKU

If you assistance with any specific task or analysis using this data, please feel free to let me know the details, and I'd be happy to help!

i have data like column A : Order id column B : Date column C : QTY column D : Title column E : SKU i have data like column A : Order id column B : Date column C : QTY column D : Title column E : Vendor

It looks like you have two sets of data with similar structures, where the first set includes the SKU information in column E and the second set includes the Vendor information in column E. If you have a specific task or analysis in mind for this data, please let me know how I can assist you further

we do have same format in all sheets like column A : Order id column B : Date column C : QTY column D : Title column E : sku column F : Vendor

Understood, it's clear that all the sheets share the same format with columns A to F. Given this common format, I can provide a resolution tailored to your needs. If you have a specific task or set of instructions in mind, please don't hesitate to let me know how I can assist you further.

can you please adjust the above formulas according to the command

Absolutely, given the common format in all sheets, I can certainly adjust the previous solution accordingly.

To assign order IDs in Sheet 3 based on the SKUs in Sheet 2 using a first in, first out (FIFO) model the common format (Order ID in column A, Date in column B, QTY column C, Title in column D, SKU in column E, and Vendor in column F), you can follow the below:

Step 1: Identify the earliest date for each SKU in Sheet In Sheet 2, use a formula like MINIFS to identify the earliest date for each SKU. For example, place this formula in Sheet2, cell G2: =MINIFS($B$2:$B$100E$2:$E$100,E2) and then drag it down to apply to all rows.

Step : Match the earliest date and SKU with the corresponding Order ID in Sheet 1 Sheet 1, you can use a formula such as VLOOKUP or INDEX-MATCH to the earliest date for each SKU from Sheet 2 with the corresponding Order ID in Sheet 1. will involve using the SKU in column E and the earliest date in column F to find the corresponding Order ID from Sheet 1.

Step 3: Apply the FIFO to Sheet 3 In Sheet 3, you can apply a similar formula to match the earliest date and SKU with the corresponding Order ID from Sheet 1, effectively assigning the order IDs based on the SKUs received from Sheet 2 the FIFO model.

By following these steps and integrating them with common format across all sheets, you can ensure that the earliest received SKUs are assigned to the corresponding order IDs first in Sheet 3.

i there any simple way than this

To simplify the process, you can use the VLOOKUP function combined with the MIN function to achieve the same result.

In Sheet 3, you can place the following formula in cell F2 (assuming that the SKU you want to match is in cell E2):

=VLOOKUP(MIN(IF(Sheet2!$E$2:$E$100=E2,Sheet2!$B$2:$B$100)),Sheet1!$E$2:$A$100,4,0)

Then, drag this formula down to apply to all rows in Sheet 3.

This formula uses VLOOKUP match the SKU from Sheet 3 with the corresponding Order ID in Sheet 1, based on the earliest date for that SKU in Sheet 2. It simplifies the process by combining the MIN function to find the earliest date for each SKU in Sheet 2.

This approach provides a more straightforward method to assign order IDs in Sheet 3 based on the SKUs in Sheet 2 using the FIFO model.

i have a data in column g like received or out of stock and order id's in column in A i need data in sheet 3 which is all received order ids which is ready to pack

To filter the order IDs in Sheet 3 based on the status "received" in column G, you can the following formula:

Assuming your data starts in row 2, place the following formula in Sheet 3, cell A2: excel =FILTER(Sheet1!A2:A100, Sheet1!2:G100="received")

This formula uses FILTER function to extract the Order IDs from Sheet 1 where the status in column G is "received". After entering the formula in cell A, drag it down to apply to all rows in Sheet 3. This will populate the Order IDs in Sheet 3 based on "received" status.

i have a data like column A : Order id column B : Date column C : QTY column D : Title column E : sku column F : Vendor Column G : Received or yet to be Received generate a formula for same order id which is received all skus means ready to pack and generate a formula one sku is yet to be received

filter the Order IDs in Sheet 3 based on the status "Received" for all SKUs and another formula indicate if at least one SKU is "yet to be received," you can use the following formulas:

For Order IDs where all SKUs are "Received":

=FILTER(A2:A100, (G2:G100="Received")*(COUNTIF($E$2:$E$100,E2:E100)=COUNTIF($G$2:$G$100,"Received")))

For Order IDs where at least SKU is "Yet to be Received":

=FILTER(A2:A100, (G:G100<>"Received")*(COUNTIF($E$2:$E$100,E2:E100)<>COUNTIF($$2:$G$100,"Received")))

These formulas leverage the function along with logical operations to achieve the desired results. After entering the formulas in their respective cells, you can then drag them down to apply to all rows in Sheet 3. This will generate the Order IDs based on the specified criteria.

please consider OOS is also as received and re assign the formulas

Certainly! Taking into account that "OOS" should also be as "received," the formulas can be adjusted as follows:

For Order IDs where all SKUs are "Received" (including "OOS"):

=FILTER(A2:A100 ((G2:G100="Received")+(G2:G100="OOS"))*(COUNTIF($E$2:$E100,E2:E100)=COUNTIF(($G$2:$G$100,{"Received","OOS"}))))

For Order IDs where at least one SKU is "Yet to Received" (excluding "Received" and "OOS"):

=FILTER(A2:A100, ((G2:G100<>"Received")*(G2:100<>"OOS"))*(COUNTIF($E$2:$E$100,E2:E100)<>COUNTIF($G$2:$G$100,{"Received","OOS"}``` These adjusted formulas now include "OOS" as "received" and account for at least one SKU beingYet to be Received." After entering the formulas in their respective, you can then drag them down to apply to all rows in Sheet 3. This will yield the Order IDs based the updated criteria.

can you pls locate whare can i paste this formula

Certainly! You can paste these formulas in the first cell of the column where you want to display the results. For example, if you want to display the results in column H, you would paste the first formula in cell H2 and the second formula in cell H2 well.

After pasting the formulas, you can then drag them down to apply to all rows in the column. This will populate the column with the Order IDs based on the specified criteria.

can we get this data from sheet 1 to sheet 3 which Order IDs where all SKUs are "Received" (including "OOS"): and sheet 4 For Order IDs where at least one SKU is "Yet to be Received" (excluding "Received" and "OOS"): with all autometed

To automate the process of extracting the data from Sheet 1 to Sheet 3 Sheet 4 based on the given criteria, you can use following VBA script. This script will automate the filtering of Order IDs and their corresponding status based on the SKU reception statusPlease place the following VBA code in the VBA editor for Sheet 1:

Dim ws1 As Worksheet Dim ws3 As Worksheet Dim ws4 As Worksheet Dim LastRow As Long Dim i As Long Set ws1 = ThisWorkbook.SheetsSheet1") Set ws3 = ThisWorkbook.Sheets("Sheet3") Set4 = ThisWorkbook.Sheets("Sheet4") LastRow = ws1.Cells(ws1.Rows.Count, "A").End(xlUp).Row 'Filter for SKUs received (including OOS) and copy to Sheet3 ws1.Range("A1:G" & LastRow).AutoFilter Field:=7, Criteria1:="", Operator:=xlOr, Criteria2:="OOS" ws1.Range("A1G" & LastRow).SpecialCells(xlCellTypeVisible).Copy Destination:=ws3.Range("A1") ws1.AutoFilterMode = False ' for at least one SKU yet to be received and copy to Sheet4 ws1.Range("A1:G" & LastRow).AutoFilter Field7, Criteria1:="<>&quot;Received", Operator:=xlAnd, Criteria2:="<>&quot;OS" ws1.Range("A1:G" & LastRow).SpecialCells(xlCellTypeVisible).Copy Destination:=ws4.RangeA1") ws1.AutoFilterMode = False End Sub

This VBA script filter the data in Sheet 1 based on the specified criteria and then copy the filtered data to Sheet 3 and Sheet 4 accordingly. When run, it automate the extraction of Order IDs based on SKU reception statuses.

can you please guide me step by step to implementation possess

Certainly! Here are the step-by-step instructions to implement the VBA code:

  1. Open your Excel workbook that contains Sheet 1, Sheet 3, and Sheet 4 where you want to apply the automation.

  2. Press "Alt +11" to open the VBA editor.

  3. In the VBA editor, you will see Project Explorer on the left side. Find and select the sheet where the VBA code will be (in this case, open the folder for "Sheet1").

  4. Right-click on "1" and choose "Insert" -> "Module" to insert a new module.

5.-click on the newly created "Module" to open it.

. Now, copy and paste the provided VBA script into the module area.

  1. Close the VBA editor and return to Excel workbook.

  2. Press "Alt + F8" to open the " Macro" window.

  3. Select the "FilterReceived" macro and click "Run".

Upon running the macro, the from Sheet 1 will be automatically filtered based on the specified and copied to Sheet 3 and Sheet 4 as per the VBA script providedPlease ensure that you save your workbook as a macro-enabled file (.xlsm) to retain the VBA code.

i have data i google sheets

Got it! In that case, the VBA script I provided is specifically for Excel. Since you have data in Google Sheets, VBA won be applicable for automation in this case.

For Google Sheets, we can achieve similar automation using Google Apps Script, Google Sheets' built-in scripting tool. you like assistance with creating a script in Google Sheets to automate the filtering and copying of data between sheets?

yes please

Great! To automate the process in Google Sheets, we can use Apps Script. Here's a step-by-step guide to create a script that the same functionality as the VBA script for Excel.

  1. Open your Google Sheets document containing the data in Sheet 1, Sheet 3, and Sheet 4.

  2. Click on "" in the menu and select "Apps Script" to open the Google Apps Script editor.

  3. In the Apps Script editor, you can use the following:

function filterAndCopyData() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet1 = ss.getSheet('Sheet1'); var sheet3 = ss.getSheetByName('Sheet3'); var sheet4 = ss.getSheet('Sheet4'); var dataRange = sheet1.getDataRange(); var data = dataRange.getValues(); var sheet3Data = []; var sheet4Data = []; for (var i = 0; i < data.length;++) { if (data[i][6] === "Received" || data[i6] === "OOS") { sheet3Data.push(data[i]); } else if (data[i][6] !== "Received" && data[i][] !== "OOS") { sheet4Data.push(data[i]); } } sheet3.clear(); // Clear existing data in sheet3 sheet3.getRange1, 1, sheet3Data.length, sheet3Data[0].lengthsetValues(sheet3Data); sheet4.clear(); // Clear existing data in sheet4 sheet4.getRange(1 1, sheet4Data.length, sheet4Data[0length).setValues(sheet4Data); }
  1. After pasting the, save the script by clicking the disk icon or pressing "Ctrl + S".

  2. Now, you can close the Apps Script editor and to your Google Sheets document.

6, You can now run the filterAndCopyData either by clicking the play icon in the toolbar or by going "Run" -> "Run function" -> "filterAndCopyData".

When you run the script, it will automate the and copying of data from Sheet 1 to Sheet 3 and Sheet 4 based the specified criteria.

Please let me know if you need any further assistance with this!

is there any other way with out any script to pull data from sheet 1 to sheet 3 and sheet4

If you prefer to avoid using scripting or coding, you can still manually pull the data from Sheet 1 to Sheet 3 and Sheet4 based on your specified criteria using Excel or Google Sheets' built-in functionalities.

For Google Sheets:

  1. Open Sheet 1, and use the Filter function to filter the data based on the specified criteria (e.g., "Received" or "OOS" status SKUs). You can use Data > Create a filter.

  2. Once the data filtered, you can select the filtered cells and then copy them.

  3. Open Sheet 3 and click on cell where you want to paste the data. Then, right-click and choose "Paste special" > "Paste values only" to paste the data.

4 Repeat the same process for Sheet 4.

For Excel:

. Open Sheet 1, and use the Filter function to the data based on the specified criteria (e.g., "Received or "OOS" status for SKUs). You can use Data > Filter.

  1. the data is filtered, you can select the filtered cells and then copy them.

  2. Open Sheet 3, click on the cell where you want to paste the data. Then, right-click and "Paste special" > "Values" to paste the data.

  3. Repeat the same process for Sheet 4While this manual method does not automate the process like a script would, it allows you to achieve the same result without writing any code.

If you need further assistance with this or have any other questions, feel free to ask!

no i need automate

Understood! If you prefer to automate the process without using scripting, you can accomplish this by using Google Sheets' built-in function, QUERY, in combination with FILTER. Here's a high-level overview of the process:

  1. In Sheet 3, you can use the following to pull the data from Sheet 1 based on your specified criteria:

    =QUERY(Sheet!A:E, "select * where E = 'Received'", )
  2. In Sheet 4, you can use a similar formula to pull the data that does not meet your specified criteria:

    =QUERY(Sheet1!A:E, "select where E != 'Received'", 1)

These formulas will automatically pull the data based on the specified criteria into Sheet 3 and Sheet 4 without the need for manual intervention or scripting.

You can modify the criteria within the formulas to align with your specific conditions. If you need further assistance or have any other questions, feel free to ask!

can guide me step by step implementation

Of course! Here's a step-by-step guide for implementing the automation without using scripting for Google Sheets:

  1. Open Your Google Sheet: Open the Google Sheet containing the data in Sheet 1, Sheet 3, and Sheet 42. Navigate to Sheet 3: Click on the tab for "Sheet3 at the bottom of the Google Sheets interface to navigate to that sheet.

  2. Enter Formula for Filtering:

    • Click on the cell where you want to start displaying filtered data in Sheet 3.
    • Enter the following formula ``` =QUERY(Sheet1!A:E, "select * E = 'Received'")
    • This formula will automatically pull the data from Sheet 1 where the value in column E is "Received" and display it in Sheet 3.
  3. Navigate to Sheet4: Click on the tab for "Sheet4" at the bottom of the Google Sheets interface to navigate to that sheet.

  4. Enter Formula for Filtering:

    • Click on the cell where you want to start displaying the filtered data in Sheet 4.
    • Enter the following formula:
      =QUERY(S1!A:E, "select * where E != 'Received'")
    • This formula will automatically pull the data from Sheet 1 where the value in column E is notReceived" and display it in Sheet 4.
  5. Review & Adjust: Review the data in Sheet3 and Sheet 4 to ensure it matches the specified criteria You can adjust the formulas to match your specific conditions if needed.

By following these steps, you can automate the process without using scripting. If you encounter any issues or have any further questions, please feel free to ask!

the formula is not working can adjust the formula : For Order IDs where all SKUs are "Received" (including "OOS"): which is in column G

Certainly! If you would like to filter the Order IDs in Sheet 3 based on the status "Received" all SKUs in column G, you can use the following adjusted formula:

=QUERY(Sheet1!A:, "select A where G = 'Received' OR G 'OOS'")

This formula will retrieve the Order IDs from Sheet 1 where all SKUs are either "Received" or "OOS" in G, and display them in Sheet 3.

If you have other specific adjustments or further questions, feel free to let me know!

pls consider OOS also as received

Got it! To include "OOS" as "received," the formula can be adjusted to account for both "Received" and "OOS" statuses in column G. Here's the formula for this:

=QUERY(Sheet1!A:G, "select A where G = 'Received OR G = 'OOS'")

This formula will retrieve the Order IDs from Sheet 1 where all SKUs are either "Received" or "OOS" in column G, and display them in Sheet3.

If you need any further assistance or have any other, please feel free to ask!

need all rows data

Certainly! If you need to pull all the rows of data where theUs are either "Received" or "OOS," you can adjust the formula as to select all columns in addition to all rows:

=QUERY(Sheet1!A:G, "select where G = 'Received' OR G = 'OOS'")

This formula will retrieve all the rows of data from Sheet 1 where the status in column G is "Received" or "OOS" and display the entire rows in Sheet.

If you have any additional questions or need further assistance, feel free to ask!

can adjust the formula : For Order IDs where at least one SKU is "Yet to be Received" (excluding "Received" and "OOS"):

Certainly! To filter the Order IDs in Sheet 3 based on the condition where at least one SKU is "Yet to be Received" (excluding "Received" and "OOS"), you can use the following adjusted formula:

=QUERY(Sheet1!A:G, "select A where NOT (G = 'Received' OR G = 'OOS')")

This formula will retrieve the Order IDs from Sheet 1 where at least one SKU is "Yet to be Received" (excluding "Received" and "OOS") in column G, and display them in Sheet 3.

If you have further questions or need additional adjustments, feel free to ask!

need all rows

Certainly! To retrieve all the rows of data where at least one SKU is "Yet be Received" (excluding "Received" and "OOS"), you can adjust the to select all columns in addition to all rows:

=QUERY(Sheet1!AG, "select * where NOT (G = 'Received' OR G = 'OS')")

This formula will retrieve all the rows of data from Sheet 1 where at least one SKU is "Yet to be" (excluding "Received" and "OOS") and display the entire rows in Sheet 3.

If you have any other questions or need further assistance, feel free to ask!

need a formula in sheet 3 where has same order id has 4 sku's where 3 are received and one is yet to be received

Here's a formula for Sheet 3 where it retrieves the Order with four SKUs, where three SKUs are "Received" and one SKU is "Yet to be":

=QUERY(Sheet1!A:G, "select * where A (select A where G = 'Received' group by A having count(A) = 3) and in (select A where G = 'Yet to be Received')")

This formula will retrieve all the rows of data from Sheet 1 where the Order ID has four SKUs with three of them being "Received" one being "Yet to be Received" and display the entire rows in Sheet 3.

If you have any further questions or need additional adjustments, feel free to ask!

please adjust formula like out of 8, 7 received 1 is yet to be received and if 10, 9 received and 1 yet to be received

Understood! To accommodate the requirement where out of 8 SKUs, 7 are received and 1 is yet to be received, or where out of 10 SKUs, 9 are received and 1 is yet to be received, you can use the following adjusted formula:

=QUERY(Sheet1!A:G, "select * where A in (select A where G = 'Received' group by A having count(A) = 7) and A in (select A where G = 'Yet to be Received')")

This formula will retrieve all the rows of data from Sheet 1 where the Order ID has the specified number of "Received" and "Yet to be Received" SKUs, and display the entire rows in Sheet 3.

If you have any other questions or need further adjustments, feel free to ask!

please adjust like same order ids skus are all received but only one is left means one is yet to be received

In that case, the formula can be adjusted to retrieve the Order IDs where all SKUs are "Received," but only one SKU is "Yet to be" using the following formula:

=FILTER(A2:A100, (COUNTIF($E$2:$$100,E2:E100)=COUNTIF($G$2:$G$100Received"))*(COUNTIF($G$2:$G$100,"Yet to be")=1))

This formula filters the Order IDs in Sheet 3 where all SKUs are "Received," but only SKU is "Yet to be Received." After entering the formula in its respective cell, you can drag it down to apply it to all rows in Sheet 3. This will generate the IDs based on the specified criteria.

If you have any other questions or need further assistance, feel free to ask!

generate a formula all skus are ether received or oss for same order id in sheet 4

To achieve this, you can use the following formula in Sheet 4 to retrieve the Order IDs where all SKUs are either "Received" or "OOS" from Sheet 1:

=FILTER(Sheet1!A:A, (COUNTIF(Sheet1!$A:$A,Sheet1!A:A)=COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"Received")+COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"OOS")))

This formula filters the Order IDs in Sheet 4 where all SKUs are either "Received" or "OOS" in Sheet 1. After entering the formula in its respective cell, you can drag it down to apply it to all rows in Sheet 4.

If you have any other questions or need further assistance, feel free to ask!

need rows data as well

Certainly! To fetch the row data along with the Order IDs where all SKUs are either "Received" or "OOS" from 1, you can use the following formula in Sheet 4:

=FILTER(Sheet1A:G, (COUNTIF(Sheet1!$AA,Sheet1!A:A)=COUNTIFS(Sheet1!$A:$,Sheet1!A:A,Sheet1!$G:$G,"Received")+COUNTIFS(S1!$A:$A,Sheet1!A:A,Sheet!$G:$G,"OOS")))

This formula will retrieve rows of data in Sheet 4 where the Order IDs in Sheet 1 have allUs as either "Received" or "OOS." After entering the formula in respective cell, you can drag it down to apply it to all rows in Sheet4.

If you have any other questions or need further assistance, feel free to ask!

To achieve this, you can use the following formula in Sheet 4 to retrieve the Order IDs where all SKUs are either "Received" or "OOS" from Sheet 1:

I apologize for the confusion, it seems there was a mistake in the previous response. To accurately retrieve the Order IDs and their corresponding row data where all SKUs are either "Received" or "OOS" from Sheet 1, you can use the following formula in Sheet 4:

FILTER(Sheet1!A:G, (Sheet1!A:A=TRANSPOSE(FILTER(Sheet1!A:A (Sheet1!G:G<>"Received")*(Sheet!G:G<>"OOS"))))

This formula will retrieve the row from Sheet 1 in Sheet 4 where all the SKUs are either "Received" or "OOS for each Order ID.

If you have any further questions or need additional assistance, feel free to ask!

give me only one if same order ids have multiple times

Certainly! To retrieve the unique Order IDs and their corresponding row data, where all SKUs are either "Received" or "OOS" from Sheet 1, you can use the following formula in Sheet 4:

=UNIQUE(FILTER(Sheet1!A:G, (Sheet1!A=TRANSPOSE(FILTER(Sheet1!A:A, (Sheet1!GG<>"Received")*(Sheet1!G:G<>"OOS"))))))

This formula will retrieve the unique Order IDs along with their corresponding row data from Sheet 1 in Sheet 4, where all theUs are either "Received" or "OOS" for each Order ID.

If you any further questions or need additional assistance, feel free to ask!

adjust formula to assign in sheet5

Absolutely! To assign the unique Order IDs and their corresponding row data where all SKUs are either "Received" or "OOS" from Sheet 1 to Sheet 5, you can use the following formula:

=UNIQUE(FILTER(Sheet1!A:, (Sheet1!A=TRANSPOSE(FILTER(Sheet1!A:A, (Sheet1!G<>"Received")*(Sheet1!G<>"O"))))))

This formula will retrieve the unique Order IDs and their corresponding row data from Sheet 1 that meet the condition of all SKUs being either "Received" or "OOS" and assign them to Sheet 5.

If you have any other questions or need further assistance, feel free to ask!

=FILTER(Sheet1!A:G, (COUNTIF(Sheet1!$A:$A,Sheet1!A:A)=COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"Received")+COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"OOS")))

It looks like you've provided the formula which you would like to assign to Sheet 5. This formula appears to be designed to filter the data from Sheet 1 and retrieve the rows where all SKUs are either "Received" or "OOS".

This formula will work on Sheet 5 as intended to retrieve the Order IDs and their corresponding row data fulfilling the specified criteria.

If you have any more questions or need further assistance with anything else, feel free to ask!

adjust the above formula with smallest to largest

To adjust the formula to retrieve the Order IDs and corresponding row data from Sheet 1 in ascending order from smallest to largest, you can use the following formula on Sheet 5:

=SORT(FILTER(Sheet1!A:G, (COUNTIF(Sheet1!$A:$A,Sheet1!A:A)=COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"Received")+COUNTIFS(Sheet1!$A:$A,Sheet1!A:A,Sheet1!$G:$G,"OOS"))), 1, TRUE)

This formula uses the SORT function to arrange the retrieved data in ascending order based on the first column, which in this case is the Order IDs.

If you have any further questions or need additional assistance, feel free to ask!

need a formula in sheet 3 where has same order id has only one yet to be received

To retrieve the Order IDs and their corresponding row data from Sheet 1 in sheet 3, where each order ID has only one SKU that is "Yet to be Received", you can use the following formula:

=FILTER(Sheet1!A:G, (Sheet1!A:A=UNIQUE(FILTER(Sheet1!A:A, Sheet1!G:G="Yet to be Received"))))

This formula filters the data in Sheet 1 to retrieve the rows where each Order ID has only one SKU that is "Yet to be Received" and displays the results in Sheet 3.

If you have any other questions or need further assistance, feel free to ask!

only one left

Certainly! To retrieve the rows from Sheet 1 where each Order ID has only one SKU that is "Yet to be Received" and then display the resulting data in Sheet 3, you can use the following formula:

=UNIQUE(FILTER(Sheet1!A:G, (Sheet1!A:A=FILTER(Sheet1!A:A, (Sheet1!G:G="Yet to be Received")))))

This formula will filter the data in Sheet 1 to retrieve the rows where each Order ID has only one SKU that is "Yet to be Received" and then display the unique rows in Sheet 3.

If you have any further questions or if there's anything else I can assist you with, please feel free to ask!

for ex same order id all skus are received but one sku is yet to be received (one left)

Got it! To retrieve the rows from Sheet 1 where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received" and then display the resulting data in Sheet 3, you can use the following formula:

=UNIQUE(FILTER(Sheet1!A:G, (Sheet1!A:A=FILTER(Sheet1!A:A, (Sheet1!G:G="Yet to be Received")*(Sheet1!G:G<>"Received")=1))))

This formula will filter the data in Sheet 1 to retrieve the rows where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received" and then display the unique rows in Sheet 3.

If you have any further questions or need additional assistance, feel free to ask!

consider oss as received

Understood. Taking into consideration that "OOS" should be as "received," the formula can be adjusted as follows:

=UNIQUE(FILTERheet1!A:G, (Sheet1!A:AFILTER(Sheet1!A:A, (Sheet1!GG="Yet to be Received")*(Sheet1!G:G<>"Received")*(Sheet1G:G<>"OOS")=1))))

This adjusted formula accounts for "OOS" as "received" and retrieves the from Sheet 1 where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received," and then displays the unique rows in Sheet 3If you have any other requests or need further assistance, feel free to ask!

adjust the above formula with smallest to largest

Certainly! To adjust the formula to retrieve the Order IDs and corresponding row data from Sheet 1 in ascending order from the smallest to the largest Order IDs, while considering "OOS" as "received", can use the following adjusted formula:

=SORT(UNIQUEILTER(Sheet1!A:G, (Sheet1!A:A=FILTER(Sheet1!A:A, (Sheet1!G:G="Yet to be")*(Sheet1!G:G<>"Received")*(Sheet1!GG<>"OOS")=1)))),1,TRUE)

This adjusted formula includes the SORT function to arrange the retrieved data in ascending order based on the first column, which represents the Order IDs.

If you have any further questions or need additional assistance, feel free to ask!

Sheet 1 to retrieve the rows where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received"

To retrieve the rows from Sheet 1 where the same Order ID has all SKUs received except for one SKU that is " to be Received," you can use the following formula in Sheet 3:

=FILTER(Sheet1!A:G, (Sheet!A:A=FILTER(Sheet1!A:A, (Sheet1!G:G="Yet to be Received") + (Sheet1!G:G<>"") + (Sheet1!G:G<>"OOS") = 1)))

This formula filters the data in Sheet 1 to the rows where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received" and displays the resulting rows in Sheet 3.

If you have any further questions or need additional assistance, feel free to ask!

the formula is not working we have multiple of yet to be received in g column

Apologies for the confusion. In that case, to retrieve the rows from Sheet 1 where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received" for each unique Order ID, you can the following adjusted formula in Sheet 3:

=(Sheet1!A:G, ARRAYFORMULA((IF(Sheet1!A:A,Sheet1!A:A)=COUNTIFS(Sheet!A:A,Sheet1!A:A,Sheet1!:G,"<>&quot;Received&quot;",Sheet1!:G,"<>Yet to be Received"))*(Sheet1!G:G<>"")*(Sheet1!G:G<>"OOS")))

This formula utilizes COUNTIF and COUNTIFS functions to filter the rows where each ID has all SKUs, except for one, marked as "Received" and "Yet to be Received" in the G column.

If you have any further questions or need additional assistance, please feel to ask!

no this one also not working

I apologize for the confusion. Let's adjust the formula to retrieve the rows from Sheet 1 where the same Order ID has all SKUs received except for one SKU that is "Yet to be Received."

Assuming the Order ID is in column A, and the status of SKUs is in column G, you can use the following formula:

=FILTER(Sheet1!A:G, (Sheet1!A:A=FILTER(Sheet1!A:A, ((Sheet1!G:G<>"Received")+(Sheet1!G:G<>"OOS"))=1)), COUNTIF(Sheet1!A:A, Sheet1!A:A)-COUNTIFS(Sheet1!A:A, Sheet1!A:A, Sheet1!G:G, "Received", Sheet1!A:A, Sheet1!A:A))

This formula filters the data in Sheet 1 to retrieve the rows where the same Order ID has all SKUs received, except for one SKU that is "Yet to be Received".

If you have any further questions or need additional assistance, feel free to ask!

i need this data in sheet3

Understood. To transfer the data using the mentioned formula to Sheet 3, you can simply copy the formula into a cell in Sheet 3, and it will display the filtered rows from Sheet 1 where the same Order ID has all SKUs except for one SKU that is "Yet to be Received."

Please let know if you need further assistance with this or if you have any other questions!

yes

Great! If you have any more questions or if there's anything else I can assist you with, feel free to ask. I'm here to!

its not working in sheet 3

I apologize for the confusion. To transfer the data from the mentioned formula to Sheet 3, you can copy the formula into a cell in Sheet 3. Let's modify the formula slightly to ensure it works:

=FILTER(Sheet1!A:G, (Sheet1!A:A=FILTER(Sheet1!A:A, ((Sheet1!G:G<>"Received")+(Sheet1!G:G<>"OOS"))=1))*(COUNTIF(Sheet1!A:A, Sheet1!A:A)-COUNTIFS(Sheet1!A:A, Sheet1!A:A, Sheet1!G:G, "Received", Sheet1!A:A, Sheet1!A:A)>0))

Copy and paste this formula into a cell in Sheet 3, and it will display the filtered rows from Sheet 1 where the same Order ID has all SKUs received, except for one SKU that is "Yet to be Received."

If you encounter any issues or need further assistance, please let me know!

sheet 3 name is "minus 3" can adjust the formula

Of course! Considering the sheet name is "minus 3," the adjusted formula for Sheet 3 would be:

FILTER('Sheet 1'!A:G, ('Sheet 1'!:A=FILTER('Sheet 1'!A:A, (('Sheet 1'!G:G<>"Received")+('Sheet 1'G:G<>"OOS"))=1))*(COUNTIF('Sheet 1!A:A, 'Sheet 1'!A:A)-COUNTIFS('Sheet '!A:A, 'Sheet 1'!A:A, 'Sheet 1'!G:G, "Received", 'Sheet 1'!A:A, 'Sheet '!A:A)>0))

Please copy and paste this adjusted formula into a cell in the "minus 3" sheet, and it should display the filtered rows from Sheet 1 where the same Order ID has all SKUs received, except for one SKU that isYet to be Received."

If you have any further questions or need additional assistance, feel free to ask!

sheet 1 name is All orders

I appreciate your patience. Given that the name of Sheet 1 is "All," the adjusted formula for Sheet 3 (named "minus 3") will be:

=FILTER('All orders'!A:G, ('All orders'!A:A=FILTER('All orders'!A:A,All orders'!G:G<>"Received")+('All orders'!G:G<>"OS"))=1))*(COUNTIF('All orders'!A:A, 'All orders'!A:A)-COUNTIFS('All orders'!A:A, 'All orders'!:A, 'All orders'!G:G, "Received", 'All orders'!A:A, 'All orders'!A:A)>0)) ` Please copy and paste this adjusted formula into a cell in the "minus 3" sheet, and it should display filtered rows from the "All orders" sheet where the same Order ID has all SKUs received, except for one SKU that "Yet to be Received." If you have any further questions or need additional assistance, feel free to ask!

adjust the formula in smallest to largest

Certainly! To adjust the formula to retrieve the Order IDs and corresponding row data from Sheet 1 in ascending order from smallest to largest, while considering "OOS" as "received," you can use the following modified formula:

=SORT(FILTER('All orders'!A:G, ('All orders'A:A=FILTER('All orders'!A:A, (('All orders'!G:G<>"Received")+('All orders'!G:G<>"O"))=1))*(COUNTIF('All orders'!A:A, 'All orders!A:A)-COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received", 'All orders'!A:A, 'All orders'!A:A0)), 1, TRUE)

This adjusted formula the SORT function to arrange the retrieved data in ascending order based on the first column, which represents the Order IDs.

Copy and paste this adjusted formula into a cell in the "minus 3" sheet, and it will display the filtered rows from the "All orders" sheet where the same Order ID has all SK received, except for one SKU that is "Yet to be Received," in ascending order.

If you have any further questions or need additional assistance, feel free to ask!

its not working

I apologize for the confusion. It seems there was a mistake in the provided formula. Let me correct that for you. Given the requirement, the adjusted formula to retrieve the corresponding data in ascending order from smallest to largest based on Order IDs, while considering "OOS" as "received," is as follows:

=SORT(FILTER('All orders'!A:G, ('All orders'!A:A=FILTER('All orders'!A:A, ('All orders'!G:G<>"Received")+('All orders'!G:G<>"OOS")=2))*(COUNTIF('All orders'!A:A, 'All orders'!A:A)-COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received", 'All orders'!A:A, 'All orders'!A:A)>0)), 1, TRUE)

Please replace the existing formula in the "minus 3" sheet with this adjusted formula. It should display the filtered rows from the "All orders" sheet, meeting the given conditions, and sorted in ascending order based on the Order IDs.

If you encounter any further issues or have additional questions, feel free to ask!

for mula is not working

I apologize for the inconvenience. Let's simplify the formula to ensure it works accurately:

=SORT(FILTER('All orders'A:G, ('All orders'!A:A=FILTER('All orders'!A:A, ('All orders'!G:G<>"Received")+('All'!G:G<>"OOS")=2)) *(COUNTIF(' orders'!A:A, 'All orders'!A:A)-COUNTIFS(' orders'!A:A, 'All orders'!A:A, 'All orders'!:G, "Received", 'All orders'!A:A, 'All orders!A:A)>0) ), 1, TRUE)

This formula filters rows from the "All orders" sheet based on the given conditions and sorts them in ascending by the Order IDs. Please replace the existing formula in theminus 3" sheet with this adjusted formula.

If you continue to experience issues, please more details or specifics about the problem so that I can assist you further.

Generate a formula : For the same Order IDs all received except one yet to be received

To retrieve the Order IDs where all SKUs are "Received," except for one SKU that is "Yet to be Received," you can use the following formula:

=FILTER('All orders'!A:A, (COUNTIF('All orders'!A:A, 'All orders'!A:A)=COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received")+1)*(COUNTIF('All orders'!A:A, 'All orders'!A:A)-COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received")=1))

This formula filters the Order IDs in the "All orders" sheet where all SKUs are "Received," except for one SKU that is "Yet to be Received." After entering the formula into a cell, it will display the IDs that meet the specified criteria.

If you have any other questions or need further assistance, feel free to ask!

please consider OSS as received

Got it! Taking into account that "OOS" should be as "received," the adjusted formula to retrieve the Order IDs where all SKUs are "Received," except for one SKU that is "Yet to be Received," "OOS" considered as "received," is as follows:

=FILTERAll orders'!A:A, (COUNTIF('All orders'!A:A, 'All orders'!A:A)=COUNT('All orders'!A:A, 'All orders'!A:A, ' orders'!G:G, "Received") +COUNTIFS('All orders'!:A, 'All orders'!A:A, 'All orders'!G:G, "OOS"))+ 1)*(COUNTIFAll orders'!A:A, 'All orders'!A:A)-COUNTIFS('All orders'!A:A, 'All orders'!A:A 'All orders'!G:G, "Received") -COUNTIFS('All orders'!A:A, ' orders'!A:A, 'All orders'!G:G,OOS")=1))

This adjusted formula filters the IDs in the "All orders" sheet where all SKUs are "Received" or "OOS," except for one SKU that is "Yet to be Received After applying this formula to a cell, it will display the Order IDs that meet the specified criteria.

If you require any further assistance, feel free to ask!

filters the Order IDs in the "All orders" sheet where all SKUs are "Received" or "OOS," except for one SKU that is "Yet to be Received." for the same order id

Certainly! To filter the Order IDs in the "All orders" where all SKUs are "Received" or "OOS," except for one SKU that is "Yet to be" for the same Order ID, you can use the following formula:

=FILTER('All orders'!A, (COUNTIF('All orders'!A:A, 'All orders'A:A) = COUNTIFS('All orders'!A:A, 'All orders'!A:A 'All orders'!G:G, "Received") + COUNTIFS('All'!A:A, 'All orders'!A:A, 'All orders'G:G, "OOS")) * (COUNTIF('All orders'!A:A, 'All orders'!A:A - COUNTIFS('All orders'!A:A, 'All orders!A:A, 'All orders'!G:G, "Received") - COUNTIFS(' orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "OOS") = 1))

This formula filters Order IDs in the "All orders" sheet where all SKUs are either "Received or "OOS," except for one SKU that is "Yet to be Received" for the same Order ID.

After applying this formula to a cell, it will display the Order IDs that meet specified conditions.

If you have any additional questions or need further assistance please feel free to ask!

filters the Order IDs in the "All orders" sheet where all order id are either "Received" or "OOS," except for one order id that is "Yet to be Received" for the same Order ID.

Based on your request, the following formula can be used to filter the Order IDs in the "All orders" sheet where all Order IDs are either "Received" or "OOS," except for one Order ID that is "Yet to be Received" for the same Order ID:

=FILTER('All orders'!A:A, (COUNTIF('All orders'!A:A, 'All orders'!A:A) = COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received") + COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "OOS")) * (COUNTIF('All orders'!A:A, 'All orders'!A:A) - COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "Received") - COUNTIFS('All orders'!A:A, 'All orders'!A:A, 'All orders'!G:G, "OOS") = 1))

This formula filters the Order IDs in the "All orders" sheet where every Order ID is either "Received" or "OOS," except for one Order ID that is "Yet to be Received" for the same Order ID.

After applying this formula to a cell in Excel, it will display the Order IDs that meet the specified conditions.

If you require any further assistance or have additional questions, please feel free to ask!

=SORT(UNIQUE(FILTER('All Orders'!A:G, ('All Orders'!A:A=FILTER('All Orders'!A:A, ('All Orders'!G:G="Yet to be Received")('All Orders'!G:G<>"Received")('All Orders'!G:G<>"OOS")=1)))),1,TRUE) can you adjust formula i do have multiple yet to b received in that sheet

Certainly! To modify the formula for cases where there are multiple "Yet to be Received" entries for the same Order ID, you can use the following adjusted formula:

=SORT(UNIQUE(FILTER('All Orders'!A:G, (COUNTIF('All Orders'!A:A, 'All Orders'!A:A) - COUNTIFS('All Orders'!A:A, 'All Orders'!A:A, 'All Orders'!G:G, "Received") - COUNTIFS('All Orders'!A:A, 'All Orders'!A:A, 'All Orders'!G:G, "OOS") = 1) )),1,TRUE)

This formula will now filter the Order IDs in the "All Orders" sheet where all Order IDs are either "Received" or "OOS," except for one Order ID that is "Yet to be Received" for the same Order ID, even if there are multiple "Yet to be Received" entries.

After applying this formula to a cell in Excel, it will display the sorted and unique Order IDs that meet the specified conditions.

If you have any other questions or need further assistance, please feel free to ask!

the formula is not working where there are multiple "Yet to be Received" entries for the different Order ID,

I apologize for the confusion. In the case where there are multiple "Yet to be Received" entries for different Order IDs, we need to adjust the formula to account for such occurrences.

The formula will need to be modified to consider each unique Order ID and count the occurrences of each status for the SKUs related to that Order ID. Here's the adjusted formula to address this scenario:

=SORT(UNIQUE(FILTER('All Orders'A:G, (COUNTIFS('All Orders'!A:A, 'All Orders'!A:A, 'All Orders'!G:G, "Received + COUNTIFS('All Orders'!A:A, 'All Orders'A:A, 'All Orders'!G:G, "OOS") =A(UNIQUE(FILTER('All Orders'!G:G, 'All Orders'!A:A = 'All Orders'!A:A))))1,TRUE)

This formula filters the Order IDs in the " Orders" sheet where all Order IDs are either "Received" or "OOS," except for one Order ID that "Yet to be Received" for the same Order ID, if there are multiple "Yet to be Received" entries for different Order IDs.

After applying this formula to a cell in Excel, it will display the sorted and unique Order IDs that meet the specified conditions, considering the presence of multiple "Yet to be Received" entries for different Order IDs.

If you have any further questions or need additional assistance, please feel free to ask!

=SORT(FILTER('All Orders'!A:G, (COUNTIF('All Orders'!$A:$A,'All Orders'!A:A)=COUNTIFS('All Orders'!$A:$A,'All Orders'!A:A,'All Orders'!$G:$G,"Received")+COUNTIFS('All Orders'!$A:$A,'All Orders'!A:A,'All Orders'!$G:$G,"OOS"))), 1, TRUE) i need same formula like all skus received of oos execpt one yet to be received in that order

Got it! To retrieve the Order IDs where all SKUs areReceived" or "OOS," except for one SKU that is "Yet to be" for the same Order ID, you can use the following formula:

=SORT(FILTER(' Orders'!A:G, (COUNTIF('All Orders'!$A:$A, 'All Orders'A:A) = COUNTIFS('All Orders'!$A:$A, 'All Orders'!A:A, 'All Orders'!$G:$G, "Received") + COUNTIFSAll Orders'!$A:$A, 'All Orders'!A:A, 'All Orders'!$G:$G "OOS") +1)), 1, TRUE)

This formula filters the Order IDs in the "All Orders" sheet where every Order ID has allUs either "Received" or "OOS," except for one SKU that isYet to be Received" for the same Order ID.

After applying this formula to a cell in Excel, it will display the sorted Order IDs that meet the specified conditions.

If you have any more questions or need further assistance, feel free to ask!

its not working sheet 3

Apologies for the confusion. Let's modify the formula to filter the Order IDs in "Sheet 3" where all SKUs are either "Received" or "OOS," except for one SKU that is "Yet to be Received" for the same Order ID.

Here's the updated formula for Sheet 3:

=SORT(FILTER('Sheet1'!A:G, (COUNTIF('Sheet1'!$A:$A, 'Sheet1'!A:A) = COUNTIFS('Sheet1'!$A:$A, 'Sheet1'!A:A, 'Sheet1'!$G:$G, "Received") + COUNTIFS('Sheet1'!$A:$A, 'Sheet1'!A:A, 'Sheet1'!$G:$G, "OOS") + 1)), 1, TRUE)

Please replace 'Sheet1' with the actual name of your data sheet if it's different from 'Sheet1'.

After applying this formula to a cell in Sheet 3, it will display the sorted Order IDs that meet the specified conditions.

If you encounter any further issues or have any other questions, please feel free to ask!

sheet name is SW1

Understood, thank you for providing the correct sheet name. Here's the modified formula for sheet SW1:

=S(FILTER('SW1'!A:G, (COUNT('SW1'!$A:$A, 'SW1'!A:A) = COUNT('SW1'!$A:$A, 'SW1!A:A, 'SW1'!$G:$G, "Received") + COUNTIFS('1'!$A:$A, 'SW1'!A:A, 'SW1'!G:$G, "OOS") + 1)), , TRUE)

Please replace 'SW1' with the actual name of your data sheet if it from 'SW1'.

After applying this formula to a cell SW1, it will display the sorted Order IDs that meet the specified conditions.

Let me know if you need any further assistance with this or if you have any other questions!

Circular dependency detected. To resolve with iterative calculation, see File > Settings.

I apologize for the inconvenience. It seems that the formula has caused a circular dependency error. This error occurs when a formula refers to its own cell either directly or indirectly.

To resolve this issue, we can use an iterative calculation setting in Excel. Here's how you can enable iterative calculations:

  1. Click on "File" in the Excel menu and select "Options."
  2. In the Excel Options box, click on "Formulas."
  3. Check the for "Enable iterative calculation."
  4. Specify the maximum iterations and the maximum change if prompted.
  5. Click "OK" to the changes.

Once the iterative calculation setting is enabled, you can go back to your worksheet, and the circular dependency error should be resolved, allowing the formula to work as intended.

If you encounter any further issues or have any other questions, feel free to ask for assistance!

formula is not working

I understand, let's revise the formula to avoid the circular dependency error in Excel. To retrieve the Order IDs in "SW1" where all SKUs are either "Received" or "OOS," except for one SKU that is "Yet to be Received" for the same Order ID, without causing a circular dependency, you can use the following approach.

First, in a new column on the SW1 sheet, you can use the following formula to count the number of "Received" and "OOS" statuses for each Order ID:

=COUNTIFS($A:$A, A2, $G:$G, "Received") + COUNTIFS($A:$A, A2, $G:$G, "OOS")

Then, in another column, use this formula to identify Order IDs where all SKUs are either "Received" or "OOS," except for one SKU that is "Yet to be Received":

=IF(COUNTIFS($A:$A, A2, $G:$G, "Yet to be Received")=1, IF(D2=COUNTA(FILTER($A:$A, $A:$A=A2)), "Yes", "No"), "No")

After populating these columns, you can apply a filter or sorting to display only the rows where the second formula evaluates to "Yes," indicating the Orders that meet the specified conditions.

I hope this resolves the issue. If you have any further questions or need additional assistance, please feel free to ask!

i need only one formula

I understand your preference for a single formula. Please bear with me as I work to formulate a single function to fulfill your request.

yes pls

Certainly! To retrieve the Order IDs in the "SW1" sheet where all SKUs are either " or "OOS," except for one SKU that is "Yet to be Received" for the same Order ID, you can use the following formula:

=FILTER(SW1!A, (COUNTIF(SW1!A:A, SW1!A:A) COUNTIFS(SW1!A:A, SW1!A:A SW1!G:G, "Received") + COUNTIFS(SW1!A:A, SW1!:A, SW1!G:G, "OOS") + 1)) ` This formula will filter and display the Order IDs in column of the "SW1" sheet that meet the specified conditions. Simply enter this formula in a cell, and it will populate the desired Order IDs. If you have any further questions or need additional assistance, feel free to ask!