# Equation Grab and Insert into Ratio

1. ## Equation Grab and Insert into Ratio

Insert data from yahoo finance. Look at Row name and grab data from column and fit into ratio.

For example: Find "Net Income" and divide by "Total Revenue" from Year 2012 (or column).

The idea is to grab and insert data efficiently without having to search for names individually. I can set up the ratios myself if I know how to grab information effectively. My best guess is to somehow use an array.

2. ## Re: Equation Grab and Insert into Ratio

I think something like this is what you are looking for:
see ratios sheet in attachment

Hope this helps :

3. ## Re: Equation Grab and Insert into Ratio

The equation you gave me appears to work sometimes. When I set up the template with new information, however, I get #N/A errors, which I believe are related to my next statement. There are some labels that appear in a second column. It looked like these had errors unless I pushed them over to the first column. Is there a way to fix this problem? Any other suggestions would be wonderful. Thanks!

One thing I could do is modify the formulas for each account that tends to be in the second column, but that seems a little tedious.

4. ## Re: Equation Grab and Insert into Ratio

If there are differences in the spellings between each imported financial statement and the match criteria, that would definitely give you the #N/A error, as Ii have used the exact match option in the formula...
I'll check the workbook out this evening and see if I can find a solution, or maybe someone else will come up with one first

5. ## Re: Equation Grab and Insert into Ratio

okay, found the problem, the formula i gave you will only reference the first column in the other sheet

to do the match of the second column
change the red underlined parrt of this
=INDEX('Balance Sheet'!\$A\$1:\$M\$61,MATCH(\$A26,'Balance Sheet'!\$A\$1:\$A\$61,0),MATCH(B\$1,'Balance Sheet'!\$A\$1:\$M\$1,0))
to this
=INDEX('Balance Sheet'!\$A\$1:\$M\$61,MATCH(\$A26,'Balance Sheet'!\$B\$1:\$B\$61,0),MATCH(B\$1,'Balance Sheet'!\$A\$1:\$M\$1,0))
whereever the match needs to be of the second column

6. ## Re: Equation Grab and Insert into Ratio

Thanks. Also, once in a while the inserted information will leave a space after an account ("Net Income " rather than "Net Income"). Is there a way to fix this problem?

7. ## Re: Equation Grab and Insert into Ratio

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

## X vBulletin 4.1.8 Debug Information

• Page Generation 0.07611 seconds
• Memory Usage 9,007KB
• Queries Executed 15 (?)
Template Usage (32):
• (1)footer
• (1)forumrules
• (1)gobutton
• (7)memberaction_dropdown
• (1)navbar
• (4)navbar_noticebit
• (6)option
• (3)postbit_attachment
• (7)postbit_legacy
• (7)postbit_onlinestatus
• (7)postbit_wrapper
• (1)spacer_close
• (1)spacer_open
• (1)tagbit_wrapper

Phrase Groups Available (6):
• global
• inlinemod
• postbit
• posting
• reputationlevel
Included Files (39):
• ./vbseo.php
• ./env.php
• ./vbseo/includes/functions_vbseo.php
• ./vbseo/includes/functions_vbseo_pre.php
• ./vbseo/includes/functions_vbseo_url.php
• ./vbseo/includes/functions_vbseo_createurl.php
• ./vbseo/includes/functions_vbseo_db.php
• ./vbseo/includes/functions_vbseo_vb.php
• ./vbseo/includes/functions_vbseo_seo.php
• ./vbseo/includes/functions_vbseo_misc.php
• ./vbseo/includes/functions_vbseo_crr.php
• ./vbseo/includes/functions_vbseo_cache.php
• ./vbseo/includes/functions_vbseo_hook.php
• ./vbseo/includes/functions_vbseo_startup.php
• ./includes/config.php
• ./global.php
• ./includes/class_bootstrap.php
• ./includes/init.php
• ./includes/class_core.php
• ./includes/functions.php
• ./includes/class_friendly_url.php
• ./includes/class_hook.php
• ./includes/functions_cforum.php
• ./includes/functions_bigthree.php
• ./includes/class_postbit.php
• ./includes/class_bbcode.php
• ./includes/functions_reputation.php
• ./includes/class_bootstrap_framework.php
• ./vb/vb.php
• ./vb/phrase.php
• ./packages/vbattach/attach.php
• ./vb/types.php
• ./vb/cache.php
• ./vb/cache/db.php
• ./vb/cache/observer/db.php
• ./vb/cache/observer.php
• ./includes/functions_notice.php

Hooks Called (48):
• init_startup
• friendlyurl_resolve_class
• database_pre_fetch_array
• database_post_fetch_array
• global_bootstrap_init_start
• global_bootstrap_init_complete
• cache_permissions
• fetch_foruminfo
• global_state_check
• global_bootstrap_complete
• global_start
• style_fetch
• global_setup_complete
• friendlyurl_redirect_canonical
• bbcode_fetch_tags
• bbcode_create
• postbit_factory
• postbit_display_start
• cache_templates
• template_register_var
• parse_templates
• notices_check_start
• notices_noticebit
• process_templates_complete
• reputation_image
• postbit_imicons
• bbcode_parse_start
• bbcode_parse_complete_precache
• bbcode_parse_complete
• postbit_attachment
• postbit_display_complete
• memberaction_dropdown
• tag_fetchbit
• tag_fetchbit_complete
• forumrules