I cant get this one right,
In colom A, row 1 I have this formula:
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
colom A, row 2:
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]2'!$M$4:$M$8,"Y")
colom A row 3:
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]3'!$M$4:$M$8,"Y")
Now my question:
1)How can I drag colom B-G so the formula automaticly change the cell ref to the next one, eg
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
becomes
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$N$4:$N$8,"Y") and so on?
OR can I drag th rows and the sheet ref changes automatically from 1 to 2 to 3 to4, etc?
I hope this make sense, I have about 12 sheets with 100 values each to change by hand if there is no other way!
Last edited by Schalk; 11-16-2011 at 01:18 AM.
1) Dragging the formula
You can try =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!M$4:M$8,"Y")
When you drag it to the right the col ref will change automatically ( see absolute and relative references)
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
kewl it works! NOW.. how do I get the col and row to sta the same but the sheet to change when I drag down?
This is not a duplicate question, just a new problem with the same formula:
How do I get the SHEET NR to change when dragging down, eg:
In colom A, row 1 I have this formula:
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$M$4:$M$8,"Y")
colom A, row 2:
=COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]2'!$M$4:$M$8,"Y")
When dragging down, everything must stay the same, only the 1, 2, 3 etc must change?
Try something like
Change the A1 to the address of the cell in which the formula is placed.=COUNTIF(INDIRECT("'[DAILY REPORTS AND ROUTES.xlsx]"& CELL("row",A1) & "'!$M$4:$M$8"),"Y")
Martin
Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.
If my solution has saved you time and/or money, please consider donating to Cancer Research UK.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks