Pulling first non blank cell per item ID

stapler88

New Member
Joined
Nov 28, 2018
Messages
1
<style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @Page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:windowtext; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial, serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl63 {color:black; font-size:14.0pt; font-family:"Helvetica Neue", sans-serif; mso-font-charset:0;} .xl64 {color:black;} --> </style>
Hi I'm trying pull the first non blank value as my dates go from right to left on a count sheet.
I need to pull the last count regardless of date into Table B as the first non blank value for that SKU. Data is coming from Table A.
When I use the following equation it's pulling in the SKU as that is technically the first non blank value. Date does not matter just the first non blank value for that SKU. New column will always be in column C.
INDEX('Physical Counts'!1:180,MATCH(A2,'Physical Counts'!AD:AD,0),MATCH(FALSE,ISBLANK('Physical Counts'!2:2),0))
Thanks!

Table A
<style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @Page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl65 {border:.5pt solid windowtext;} .xl66 {mso-number-format:"d\\-mmm"; border:.5pt solid windowtext;} --> </style>
SKUDescription16-Nov15-Nov14-Nov
111Apple 54
112Orange324
113Banana 8
Table B
SKUDescriptionLast count
111Apple5
112Orange3
113Banana8

<!--StartFragment--> <colgroup><col width="87" span="5" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

<!--StartFragment--> <colgroup><col width="87" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
If Table A is in range A1:E4, then for Apple the formula will be =INDEX($C$2:$E$4,MATCH(B12,$B$2:$B$4,0),MATCH(TRUE, INDEX(ISNUMBER(C2:E2),0),0))
B12 is the call where I had the Word "Apple" in Table B.
Fill down for Orange and Banana.

Adjust the cell ranges to suit your file.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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