• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Excel Spreadsheet Formula - BROKEN INTO 2 QUESTIONS!

I have a multi-tabed Excel Spreadsheet Report.  Each Page contains a Page Number in the following format:
                           - 12 -
The reports begin with Tab2.  The first page of Tab2 reports (generally two pages long) gets it page number from a user supplied entry on Tab1.
If the user supplied value in cell D53 of Tab1 contains the number 3, this formula, in B69 of Tab2
                       ="- "&(Tab1!$D$53)&" -"
Yields the following results:
                       - 3 -
If want cell B144 of Tab2 to increment this number by 1.
If the Tab2 report is three pages long, there could be a value in B217!  If so, I would want the resulting value in B217 incremented by 1.
I cannot do this with VBA.  That is beyond my expertise.
Bill Golden
Bill Golden
  • 4
1 Solution
Danny ChildIT ManagerCommented:
If you can post an example of what you have so far, that would be helpful.

I'd suggest an alternative way of generating the layout you want.  Instead of using a formula, use a Custom Format for those cells of
" - "0" - "

Copy the line above, in bold
To apply this, highlight the cells in question, and then press CTRL + 1
This is the shorcut for the Number Format dialog box.  Select Custom from the Category List, and paste in the line above, just below where it says Type:

The advantage of this is that the numbers stay as numbers, and it's easier to change their values later.
Danny ChildIT ManagerCommented:
OK, I'm not following your explanation totally, but here's what I think it means.

You want one sheet (Tab 2, col B) to check for numbers in another sheet (Tab 1, col D), and to increase the count by one for every page it goes down.

I've cobbled something together here, hope it's useful?
Danny ChildIT ManagerCommented:
Your other question seems related but remarkably similar, but also talks about different tabs - Tab 2 and 3, not 1 and 2.  Could you clarify, please?
Bill GoldenExecutive Managing MemberAuthor Commented:
Excellent solution.  Building on that solution to accomplish another task.
Danny ChildIT ManagerCommented:
Glad it helped, let us know if more explanation needed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now