Extract list of non-zero cell values from a list AND whether Estimate or Actual AND the name of the product

KarenAus

New Member
Joined
Oct 2, 2019
Messages
1
I have a list that I need to remove the zero value items from via formula to create a new list (imagine an order form).

Because people will be using this second form without much excel knowledge, I need it 100% formula driven.


QtyItemEstimate or Actual?
- ApplesActual
16BananasEstimate
15OrangesActual
StrawberriesActual
10BlueberriesEstimate

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


I need it to look like this (with a dollar symbol aligned to the left):

Bananas$ (E) 16
Oranges$ (A) 15
Blueberries$ (E) 10

<tbody>
</tbody>


I have found this formula to return the non-zero values (when dragged down the column): {=IF(ROWS(F$2:F2)>COUNTIF(A$2:A$1201,">0"),"",INDEX(A$2:A$1201,SMALL(IF(A$2:A$1201>0,ROW(A$2:A$1201)-ROW(A$2)+1),ROWS(F$2:F2))))}

But I'm not sure how to concatenate the estimate or $ symbol into that formula.

Also, not sure how to extract the label in the cell beside the non-zero value.

Any ideas please?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to MrExcel!

Try:


Book1
ABCDEF
1QtyItemEstimate or Actual?ItemResult
2ApplesActualBananas$ (E) 16
316BananasEstimateOranges$ (A) 15
415OrangesActualBlueberries$ (E) 10
5StrawberriesActual
610BlueberriesEstimate
Sheet9
Cell Formulas
RangeFormula
E2=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$6)/($A$2:$A$6>0),ROWS(E$2:E2))),"")
F2=IF(E2="","","$ ("&LEFT(INDEX($C$2:$C$6,MATCH(E2,$B$2:$B$6,0)))&") "&INDEX($A$2:$A$6,MATCH(E2,$B$2:$B$6,0)))
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,272
Members
448,558
Latest member
aivin

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