Please help me simplify this one.

ryan0521

Board Regular
Joined
Dec 7, 2016
Messages
79
I have 3 sheets that contain data as shown below:

Posted sheet:
Item CodeNameDateTrans. TypeTrans. #UOMPackQuantityTotal
101Patty -Whopper 3/30/2018Out18873CAS1442288
103Patty -Chicken Roya 3/2/2018Out18646PCS13636
103Patty -Chicken Roya 3/6/2018In18690PCS13636
103Patty -Chicken Roya 3/9/2018In18721PCS14848

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


Out Sheet:
Aloha CodeItem NameReq. QtyApproved QtyUOMRequested ByRequested OnApproved OnApproved ByReleased ONReceived On
103Chk Royale - 144 Pcs432336BK - Care Four3/2/20183/2/2018BK-Dareen3/2/20183/2/2018
103Chk Royale - 144 Pcs345624288BK - Care Four3/21/20183/21/2018BK-Dareen3/21/20183/21/2018

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


In Sheet:
Aloha CodeItem NameReq. QtyApproved QtyUOMRequested ByRequested OnApproved OnApproved ByReleased ONReceived On
103Chk Royale - 144 Pcs432336BK-Dareen3/6/20183/6/2018BK - Care Four3/6/20183/6/2018
103Chk Royale - 144 Pcs576448BK-Dareen3/6/20183/6/2018BK - Petromin Exit143/6/20183/8/2018

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


And then in the 4th sheet I made a formula in A3, on which it will check if the items listed in Posted sheet is also posted on Out sheet or In sheet, see my formula below, all I want is to simplify my formula because it's too long LOL.

=IF(Posted!A2<>"",IF(Posted!D2="In",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,Posted!C2,In!D:D,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,VALUE(Posted!C2)-1,In!D:D,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,Posted!C2,In!C:C,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,VALUE(Posted!C2)-1,In!C:C,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,Posted!C2,In!E:E,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(In!A:A,Posted!A2,In!K:K,VALUE(Posted!C2)-1,In!E:E,Posted!I2)),"",Posted!A2)))))),IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,Posted!C2,Out!D:D,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,VALUE(Posted!C2)-1,Out!D:D,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,Posted!C2,Out!C:C,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,VALUE(Posted!C2)-1,Out!C:C,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,Posted!C2,Out!E:E,Posted!I2)),"",IF(ISNUMBER(1/COUNTIFS(Out!A:A,Posted!A2,Out!J:J,VALUE(Posted!C2)-1,Out!E:E,Posted!I2)),"",Posted!A2))))))),"")


Please help me. Thank you so much.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,212,927
Messages
6,110,696
Members
448,293
Latest member
jin kazuya

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