Index if

AbrahamGluck

Board Regular
Joined
Apr 12, 2016
Messages
129
Office Version
  1. 365
Platform
  1. Windows
I would like to have a filtered report on a new sheet that contains an index of values of column A only if column B or C is above 0, can someone help me please,
Thank you in Advance!




Jun 2020Jul 2020Aug 2020Sep 2020Oct 2020
Bob's Burger Joint28.49
Books by Bessie55.0075.00
Brosnahan Insurance Agency2,241.23
Cal Telephone74.3656.50
Chin's Gas and Oil417.8554.5562.01
Diego's Road Warrior Bodyshop755.00
Ellis Equipment Rental112.0018.08
Hall Properties900.00103.5518.08
Hicks Hardware103.55250.00370.51
Lee Advertising75.0074.86
Mahoney Mugs18.08
Norton Lumber and Building Materials103.55
Pam Seitz75.00
PG&E86.44114.09
Robertson & Associates300.00100.00250.00315.00
Squeaky Kleen Car Wash59.97
Tania's Nursery158.08197.18207.85
Tim Philip Masonry666.00
Tony Rondonuwu100.00
TOTAL$ 4,800.44$ 221.63$ 659.26$ 707.13$ 2,208.40
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Maybe something like this.
If you have Excel 365 with the FILTER function then example 1.
If not then try the INDEX function in example 2.

Data: Sheet1
Book1
ABCDEF
16/1/20207/1/20208/1/20209/1/202010/1/2020
2Bob's Burger Joint28.49
3Books by Bessie5575
4Brosnahan Insurance Agency2,241.23
5Cal Telephone74.3656.5
6Chin's Gas and Oil417.8554.5562.01
7Diego's Road Warrior Bodyshop755
8Ellis Equipment Rental11218.08
9Hall Properties900103.5518.08
10Hicks Hardware103.55250370.51
11Lee Advertising7574.86
12Mahoney Mugs18.08
13Norton Lumber and Building Materials103.55
14Pam Seitz75
15PG&E86.44114.09
16Robertson & Associates300100250315
17Squeaky Kleen Car Wash59.97
18Tania's Nursery158.08197.18207.85
19Tim Philip Masonry666
20Tony Rondonuwu100
21TOTAL$4,800.44 $221.63 $659.26 $707.13 $2,208.40
Sheet1


Example 1 with FILTER
Book1
A
1With FILTER function
2Brosnahan Insurance Agency
3Cal Telephone
4Chin's Gas and Oil
5Diego's Road Warrior Bodyshop
6Ellis Equipment Rental
7Hall Properties
8Robertson & Associates
Sheet3
Cell Formulas
RangeFormula
A2A2=FILTER(Sheet1!$A$2:$A$20,(Sheet1!$B$2:$B$20)+(Sheet1!$C$2:$C$20)<>0,"")


Example 2 with INDEX:
Cell Formulas
RangeFormula
A2:A8A2=IFERROR(INDEX(Sheet1!$A$2:$A$20,AGGREGATE(15,6,(ROW(Sheet1!$A$2:$A$20)-ROW(Sheet1!$A$2)+1)/((Sheet1!$B$2:$B$20)+(Sheet1!$C$2:$C$20)<>0),ROWS($A$2:A2))),"")
 
Upvote 0
another option

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Unpivot = Table.Unpivot(Source, {"06/01/2020", "07/01/2020"}, "Attribute", "Value"),
    TSC = Table.SelectColumns(Unpivot,{"Index"}),
    Distinct = Table.Distinct(TSC)
in
    Distinct
Index
Brosnahan Insurance Agency
Cal Telephone
Chin's Gas and Oil
Diego's Road Warrior Bodyshop
Ellis Equipment Rental
Hall Properties
Robertson & Associates
TOTAL
 
Last edited:
Upvote 0
Maybe something like this.
If you have Excel 365 with the FILTER function then example 1.
If not then try the INDEX function in example 2.

Data: Sheet1
Book1
ABCDEF
16/1/20207/1/20208/1/20209/1/202010/1/2020
2Bob's Burger Joint28.49
3Books by Bessie5575
4Brosnahan Insurance Agency2,241.23
5Cal Telephone74.3656.5
6Chin's Gas and Oil417.8554.5562.01
7Diego's Road Warrior Bodyshop755
8Ellis Equipment Rental11218.08
9Hall Properties900103.5518.08
10Hicks Hardware103.55250370.51
11Lee Advertising7574.86
12Mahoney Mugs18.08
13Norton Lumber and Building Materials103.55
14Pam Seitz75
15PG&E86.44114.09
16Robertson & Associates300100250315
17Squeaky Kleen Car Wash59.97
18Tania's Nursery158.08197.18207.85
19Tim Philip Masonry666
20Tony Rondonuwu100
21TOTAL$4,800.44 $221.63 $659.26 $707.13 $2,208.40
Sheet1


Example 1 with FILTER
Book1
A
1With FILTER function
2Brosnahan Insurance Agency
3Cal Telephone
4Chin's Gas and Oil
5Diego's Road Warrior Bodyshop
6Ellis Equipment Rental
7Hall Properties
8Robertson & Associates
Sheet3
Cell Formulas
RangeFormula
A2A2=FILTER(Sheet1!$A$2:$A$20,(Sheet1!$B$2:$B$20)+(Sheet1!$C$2:$C$20)<>0,"")


Example 2 with INDEX:
Cell Formulas
RangeFormula
A2:A8A2=IFERROR(INDEX(Sheet1!$A$2:$A$20,AGGREGATE(15,6,(ROW(Sheet1!$A$2:$A$20)-ROW(Sheet1!$A$2)+1)/((Sheet1!$B$2:$B$20)+(Sheet1!$C$2:$C$20)<>0),ROWS($A$2:A2))),"")


Thank so much, I am using google sheet so aggregate won't work, do you have a workaround for that?
I would also not want to use filter because I want to keep it in a separate sheet because the first sheet is connected to a third party app that will do changes to it and update the sheet constantly.
 
Upvote 0
I think I figured it out due to the help of the community thanks to all

=FILTER('sheet1'!A:M,'sheet1'!M:M<>0)
 
Upvote 0
I am using google sheet

In future please do not ask Google Sheets questions in the Excel Questions forum ..
1605680184555.png


.. use this forum instead. I have moved this thread to that forum.
1605680260180.png
 
Upvote 0

Forum statistics

Threads
1,223,632
Messages
6,173,472
Members
452,516
Latest member
archcalx

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