If Formula

ritesh28880

New Member
Joined
Sep 18, 2009
Messages
1
Hi,

I have 12 sheets which are named as Jan, Feb, ..... I want to use If condition for a drop down box which consists months from Jan - Dec. Using the vale from drop box I want to fetch data from that particular months sheets.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Excel Workbook
AB
1JanSelect Month
2
3
4Data 1Data 2
512
623
LookUp Sheet
Excel 2007
Cell Formulas
RangeFormula
A5=IF($A$1="Jan",Jan!A2,IF($A$1="Feb",Feb!A2,IF($A$1="Mar",Mar!A2,IF($A$1="Apr",Apr!A2,IF($A$1="May",May!A2,IF($A$1="Jun",Jun!A2,IF($A$1="Jul",Jul!A2,IF($A$1="Aug",Aug!A2,IF($A$1="Sep",Sep!A2,IF($A$1="Oct",Oct!A2,IF($A$1="Nov",Nov!A2,IF($A$1="Dec",Dec!A2,""))))))))))))
A6=IF($A$1="Jan",Jan!A3,IF($A$1="Feb",Feb!A3,IF($A$1="Mar",Mar!A3,IF($A$1="Apr",Apr!A3,IF($A$1="May",May!A3,IF($A$1="Jun",Jun!A3,IF($A$1="Jul",Jul!A3,IF($A$1="Aug",Aug!A3,IF($A$1="Sep",Sep!A3,IF($A$1="Oct",Oct!A3,IF($A$1="Nov",Nov!A3,IF($A$1="Dec",Dec!A3,""))))))))))))
B5=IF($A$1="Jan",Jan!B2,IF($A$1="Feb",Feb!B2,IF($A$1="Mar",Mar!B2,IF($A$1="Apr",Apr!B2,IF($A$1="May",May!B2,IF($A$1="Jun",Jun!B2,IF($A$1="Jul",Jul!B2,IF($A$1="Aug",Aug!B2,IF($A$1="Sep",Sep!B2,IF($A$1="Oct",Oct!B2,IF($A$1="Nov",Nov!B2,IF($A$1="Dec",Dec!B2,""))))))))))))
B6=IF($A$1="Jan",Jan!B3,IF($A$1="Feb",Feb!B3,IF($A$1="Mar",Mar!B3,IF($A$1="Apr",Apr!B3,IF($A$1="May",May!B3,IF($A$1="Jun",Jun!B3,IF($A$1="Jul",Jul!B3,IF($A$1="Aug",Aug!B3,IF($A$1="Sep",Sep!B3,IF($A$1="Oct",Oct!B3,IF($A$1="Nov",Nov!B3,IF($A$1="Dec",Dec!B3,""))))))))))))



A1 is a Data Validation Drop down that points to a list in a column I hid.
 
Upvote 0
Alternatively you could use a combination of INDIRECT and ADDRESS as ADDRESS accepts an argument for the sheet name. As INDIRECT is a volatile formula you might want to use it sparingly so it depends on how much data you're looking at pulling from the other sheets.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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