Use cell Data to point to another sheet in formula?

Turbo68

Board Regular
Joined
Jan 31, 2014
Messages
118
I am looking to use a formula that counts data in another sheet in the same workbook but use a cell data info to get the right sheet. I have sheets named 2017, 2018, 2019, ect and need to have my countif formula in another cell to look for data in the correct sheet depending on the data in another cell. So lets say, A1 has 2018 in that cell. In A2 I have the word "APPLES". In A3 i want to know how many "APPLES" there are in sheet 2018 in col A. Formula should look like this i think:

=countif(' =A1 '!A:A,A2)

The =A1 would get 2018 from that cell and needs to know to go to the sheet 2018 and then count.

Can this even be done?

Thanks in advance.

Mike
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

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