+ Reply to Thread
Results 1 to 13 of 13

Help with formulas using different work sheets

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    8

    Help with formulas using different work sheets

    Hello,

    I was wondering if anyone can help me;

    I am trying to collate data used in work sheets 1 and 2 into a chart in work sheet 3.

    The formula I am wanting to use is one to create a tally of how many times a text is mentioned in a row;

    =sum(IF(F12:F1266="Ellis",1,0))

    This formula works fine in the sheet the data is in but I want to move it across to another tab so it's in a table with the relevant info.

    How do I keep this formula but move it to a different tab?

    I will be doing this for alot of different words!

    Any help would be greatly appreciated

    Thank you

    Lys

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    a simple solution is to replace all '=' sign with # and copy paste. Then replace the # sign with =
    I do this everytime..

  3. #3
    Registered User
    Join Date
    06-12-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help with formulas using different work sheets

    Thanks for your reply.

    Just tried doing that and it just tried to retrive the data from the sheet it had been copied into, not the original one?

  4. #4
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    HI,
    Have a look at this

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    Otherwise you will have to fix each and every cell by using $ (F4)

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with formulas using different work sheets

    =sum(IF(F12:F1266="Ellis",1,0)) is a strange way to count text
    you should use =COUNTIF(F12:F1266,"ellis")
    fyi i just copy the formula into notepad then recopy back to excel
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    But I think he want to retain the ref of Sheet 1 even if we copy to sheet 2

  8. #8
    Registered User
    Join Date
    06-12-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help with formulas using different work sheets

    Does that not apply for moving a formula around the same work sheet but in different locations?

    I need to create a formula that pulls data from a different work sheet.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with formulas using different work sheets

    enter the formula like this
    =COUNTIF(Sheet1!$F$12:$F$1266,"ellis")
    if you have =COUNTIF($F$12:$F$1266,"ellis") then put the cursor just before $F$12:$F$1266
    select any other sheet with mouse then select back to the sheet the formula is in press enter
    the sheet name will be added
    you can now copy paste the formula

  10. #10
    Registered User
    Join Date
    06-12-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help with formulas using different work sheets

    Okay,

    I have attached a test version of what I am trying to do;

    I want to tally up the quantity of tests and examples from both sheets 'Test A' and 'Test B' into 'Test Total'

    I want the formula there so that I can add more data to 'Test A' and 'Test B' and it will automatically update the 'Test Total'

    Thanks
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    Or better solution is replace '$F$12:$F$1266' with 'Sheet1!$F$12:$F$1266'

  12. #12
    Registered User
    Join Date
    06-12-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help with formulas using different work sheets

    That seems to be working! thanks

  13. #13
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Help with formulas using different work sheets

    :-) Glad that we could help you.
    Please make this thread as solved by Edit>>Advanced and in the dropdown-solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1