Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2017, 08:34 AM
Cosmo Cosmo is offline Formula to calculate footnotes Windows Vista Formula to calculate footnotes Office 2007
Competent Performer
Formula to calculate footnotes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Formula to calculate footnotes

I have a worksheet with a master item list (item number, description, options). There are 4 columns which contain optional parameters (A, B, C, D) for each item.



In another worksheet, I have a subset list of items with several calculations to display data via lookups to the master item list (based on item number column). One of the calculations needs to display a footnote number for each of those parameters, but they need to be numbered based on their appearance in the subset list. i.e. if the first item in the list has options B and D, and the second item has option C, then the footnotes will be as follows:

A: 4
B: 1
C: 3
D: 2

If the order changes, then the footnote order needs to be updated based on the new order.

Is there a way to do this in a calculation, or do I need to script this? Additionally, if I can have a calculated summary at the end with the actual footnotes in order (e.g. 1: B, 2: D, etc.) that would be great, but I could do that manually if necessary.
Reply With Quote
  #2  
Old 02-16-2017, 09:04 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Formula to calculate footnotes Windows 7 64bit Formula to calculate footnotes Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Please post a sample sheet showing some data and expected results. Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 02-16-2017, 11:07 AM
Cosmo Cosmo is offline Formula to calculate footnotes Windows Vista Formula to calculate footnotes Office 2007
Competent Performer
Formula to calculate footnotes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Attached is a quick demo. There are 3 worksheets, the first i the master data list. The next 2 are 2 different scenarios to demonstrate what I want to do.

In Scenario 1, the first item (12345) uses options B and D, so the first footnote would be Option B, the second Option D (as in column C), etc down the line:
1: Option B
2: Option D
3: Option C
4: Option A

In Scenario 2, the first item (12348) uses option A, the second uses option C, so the footnotes would change as follows
1: Option A
2: Option C
3: Option B
4: Option D

I hope this illustrates what I'm trying to do. These footnotes would ultimately be added at the end of the description in column B. Ideally, if I can generate a legend, as I did in rows 11-15, that would be great too, but not as important. And if so, it would be great if it only included the footnotes for options that were used in the list.

Thanks for looking at this. If there's anything else that needs clarification, please let me know.
Attached Files
File Type: xls FootnoteDemo.xls (51.0 KB, 15 views)
Reply With Quote
  #4  
Old 02-16-2017, 11:21 AM
Cosmo Cosmo is offline Formula to calculate footnotes Windows Vista Formula to calculate footnotes Office 2007
Competent Performer
Formula to calculate footnotes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

What I've been trying to think of is if I can add a column which has all of the footnote values ('Option B, Option D', etc.) for that item, then create a list of unique values from that column, and add the index(es) of that list to the description cell for each value in the footnotes column. But I don't know if this will work or not.
Reply With Quote
  #5  
Old 02-17-2017, 11:42 AM
Cosmo Cosmo is offline Formula to calculate footnotes Windows Vista Formula to calculate footnotes Office 2007
Competent Performer
Formula to calculate footnotes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

I think I've figured out an outline of what I need to do, now I just need to figure out how to do it.

I have added lookup columns on each scenario worksheet for each option. this will give me a range that I can then do an array formula to get the unique items in the order they appear in the list. I have gotten a test to do this, but I haven't gotten it working in the actual files yet. I will need to do some more reading and experimenting to get a handle on the whole array formula concept.

Once I get that working, that will give me the legend showing each footnote with it's number and text.*

From there, I will need to use the values in each rows option lookups to get that text's index in the legend list to add the footnote numbers to the actual row description.


I am pretty confident this will do what I need. Unfortunately, these steps are a little below my current competency level in Excel, so it will take some time learning/experimenting to get this working.

*Edit: I also need to make sure the list includes only non-empty values, which is more complicated than what I have so far.
Reply With Quote
  #6  
Old 02-24-2017, 06:48 AM
Cosmo Cosmo is offline Formula to calculate footnotes Windows Vista Formula to calculate footnotes Office 2007
Competent Performer
Formula to calculate footnotes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

So far, I have gotten this partially working to where it's usable for now.

I have columns using INDEX/MATCH to get the values of the Options into columns in the scenario worksheets, and I created a range to store the legend (which I enter manually based on their order in the options columns)

From there, I get the proper footnote symbol from the legend using another lNDEX/MATCH for each option column, and this is working properly for me.

The only part that isn't working yet is the compilation of the legend itself (getting the unique non-empty values from all of the option columns). I do want to try to get this working in the future, and I have had some success with a formula in tests, but getting it to work in the actual worksheet hasn't happened yet. For now, it's easy to enter the values in the legend list manually so that i can get this task done.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to calculate footnotes Need a formula to calculate turnaround time Rockitman31 Excel 9 09-07-2015 09:41 AM
Formula to calculate Frequency lwls Excel 1 03-30-2015 05:40 AM
Formula to calculate footnotes IF Formula to calculate dates Sophie1 Excel 2 04-23-2014 07:19 AM
Formula to calculate Leap Year USAOz Excel 2 09-11-2011 04:58 PM
Formula to calculate footnotes What formula should I use to calculate commission? grs Excel 3 02-21-2011 02:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft