+ Reply to Thread
Results 1 to 7 of 7

how do I copy info from one sheet to another via a formula?

  1. #1
    Trese
    Guest

    how do I copy info from one sheet to another via a formula?

    Good day all, hope you can help!!

    I need a formula that will take info from sheet A column b only if sheet A
    column A contains "EMC" somewhere in the text. I need it to paste into Sheet
    B coumn B exactly as shown in sheet A column b as well as index to the next
    line that contains this info.

    example:
    Sheet A
    A B
    EMC, Safe PREPARE Checklist
    ENVIR Send PCB for test
    ID, EMC, SAFE Testing files complete

    Sheet B:
    A B
    PREPARE Checklist
    Testing files complete

    I have tried using the following formula but I get empty lines "FALSE"
    between the actual info and it is not pulling the information exactly as it
    is on the other sheet. It is also not pulling all info from lines that
    contain the EMC text. If EMC is listed as EMC, SAFE, ID, FW etc it does not
    pull that line item.
    =IF(Sheet!A6="EMC",Sheet!B6)

    Help, what am I doing wrong? I am a newbie and have spent several hours
    looking through all the formulas/discussions you have provided to other users
    but did not see one that would do what I am looking for on this sheet.
    Your help would be appreciated.

    Thanks,
    Trese



  2. #2
    Max
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    One way which should do it ..

    In SheetA
    -----
    Put in D1: =IF(A1="","",IF(ISNUMBER(FIND("EMC",A1)),ROW(),""))

    Copy D1 down to say, D100, to cover the max expected data range in col A
    (can copy down ahead of expected data in col A)

    In SheetB
    ----
    Put in B1:

    =IF(ISERROR(SMALL(SheetA!D:D,ROWS($A$1:A1))),"",INDEX(SheetA!B:B,MATCH(SMALL
    (SheetA!D:D,ROWS($A$1:A1)),SheetA!D:D,0)))

    Copy B1 down to B100
    (cover the same range size as in col D in SheetA)

    Col B will return the desired results from SheetA's col B,
    all neatly bunched at the top ..
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Trese" <[email protected]> wrote in message
    news:[email protected]...
    > Good day all, hope you can help!!
    >
    > I need a formula that will take info from sheet A column b only if sheet A
    > column A contains "EMC" somewhere in the text. I need it to paste into

    Sheet
    > B coumn B exactly as shown in sheet A column b as well as index to the

    next
    > line that contains this info.
    >
    > example:
    > Sheet A
    > A B
    > EMC, Safe PREPARE Checklist
    > ENVIR Send PCB for test
    > ID, EMC, SAFE Testing files complete
    >
    > Sheet B:
    > A B
    > PREPARE Checklist
    > Testing files complete
    >
    > I have tried using the following formula but I get empty lines "FALSE"
    > between the actual info and it is not pulling the information exactly as

    it
    > is on the other sheet. It is also not pulling all info from lines that
    > contain the EMC text. If EMC is listed as EMC, SAFE, ID, FW etc it does

    not
    > pull that line item.
    > =IF(Sheet!A6="EMC",Sheet!B6)
    >
    > Help, what am I doing wrong? I am a newbie and have spent several hours
    > looking through all the formulas/discussions you have provided to other

    users
    > but did not see one that would do what I am looking for on this sheet.
    > Your help would be appreciated.
    >
    > Thanks,
    > Trese
    >
    >




  3. #3
    Trese
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    Max,
    Thanks for the quick response. I loaded these formulas into a sample sheet
    but only had luck with the formula on sheet A. Sheet B formula did not pull
    in any data. When I enter the formula EXCEL changes it and asks that I update
    the file. Not sure why?
    I can send you the sample sheet for reference if you like. Any ideas

    Thanks,
    Trese

    "Max" wrote:

    > One way which should do it ..
    >
    > In SheetA
    > -----
    > Put in D1: =IF(A1="","",IF(ISNUMBER(FIND("EMC",A1)),ROW(),""))
    >
    > Copy D1 down to say, D100, to cover the max expected data range in col A
    > (can copy down ahead of expected data in col A)
    >
    > In SheetB
    > ----
    > Put in B1:
    >
    > =IF(ISERROR(SMALL(SheetA!D:D,ROWS($A$1:A1))),"",INDEX(SheetA!B:B,MATCH(SMALL
    > (SheetA!D:D,ROWS($A$1:A1)),SheetA!D:D,0)))
    >
    > Copy B1 down to B100
    > (cover the same range size as in col D in SheetA)
    >
    > Col B will return the desired results from SheetA's col B,
    > all neatly bunched at the top ..
    > --
    > Rgds
    > Max
    > xl 97
    > ---
    > GMT+8, 1° 22' N 103° 45' E
    > xdemechanik <at>yahoo<dot>com
    > ----
    > "Trese" <[email protected]> wrote in message
    > news:[email protected]...
    > > Good day all, hope you can help!!
    > >
    > > I need a formula that will take info from sheet A column b only if sheet A
    > > column A contains "EMC" somewhere in the text. I need it to paste into

    > Sheet
    > > B coumn B exactly as shown in sheet A column b as well as index to the

    > next
    > > line that contains this info.
    > >
    > > example:
    > > Sheet A
    > > A B
    > > EMC, Safe PREPARE Checklist
    > > ENVIR Send PCB for test
    > > ID, EMC, SAFE Testing files complete
    > >
    > > Sheet B:
    > > A B
    > > PREPARE Checklist
    > > Testing files complete
    > >
    > > I have tried using the following formula but I get empty lines "FALSE"
    > > between the actual info and it is not pulling the information exactly as

    > it
    > > is on the other sheet. It is also not pulling all info from lines that
    > > contain the EMC text. If EMC is listed as EMC, SAFE, ID, FW etc it does

    > not
    > > pull that line item.
    > > =IF(Sheet!A6="EMC",Sheet!B6)
    > >
    > > Help, what am I doing wrong? I am a newbie and have spent several hours
    > > looking through all the formulas/discussions you have provided to other

    > users
    > > but did not see one that would do what I am looking for on this sheet.
    > > Your help would be appreciated.
    > >
    > > Thanks,
    > > Trese
    > >
    > >

    >
    >
    >


  4. #4
    Max
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    > ... Sheet B formula did not pull in any data. ..

    You probably were hit by the line break(s)/wrap(s) in the formula when you
    copied and pasted into SheetB. These break(s) need to be corrected manually
    after pasting. The entire formula has to be in one line. Try it again. And
    just in case needed,
    here's a link to a sample file with the implemented construct:
    http://savefile.com/files/6733373
    Trese_wksht.xls

    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Trese" <[email protected]> wrote in message
    news:[email protected]...
    > Max,
    > Thanks for the quick response. I loaded these formulas into a sample sheet
    > but only had luck with the formula on sheet A. Sheet B formula did not

    pull
    > in any data. When I enter the formula EXCEL changes it and asks that I

    update
    > the file. Not sure why?
    > I can send you the sample sheet for reference if you like. Any ideas
    >
    > Thanks,
    > Trese
    >
    > "Max" wrote:
    >
    > > One way which should do it ..
    > >
    > > In SheetA
    > > -----
    > > Put in D1: =IF(A1="","",IF(ISNUMBER(FIND("EMC",A1)),ROW(),""))
    > >
    > > Copy D1 down to say, D100, to cover the max expected data range in col A
    > > (can copy down ahead of expected data in col A)
    > >
    > > In SheetB
    > > ----
    > > Put in B1:
    > >
    > >

    =IF(ISERROR(SMALL(SheetA!D:D,ROWS($A$1:A1))),"",INDEX(SheetA!B:B,MATCH(SMALL
    > > (SheetA!D:D,ROWS($A$1:A1)),SheetA!D:D,0)))
    > >
    > > Copy B1 down to B100
    > > (cover the same range size as in col D in SheetA)
    > >
    > > Col B will return the desired results from SheetA's col B,
    > > all neatly bunched at the top ..
    > > --
    > > Rgds
    > > Max
    > > xl 97
    > > ---
    > > GMT+8, 1° 22' N 103° 45' E
    > > xdemechanik <at>yahoo<dot>com
    > > ----
    > > "Trese" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Good day all, hope you can help!!
    > > >
    > > > I need a formula that will take info from sheet A column b only if

    sheet A
    > > > column A contains "EMC" somewhere in the text. I need it to paste into

    > > Sheet
    > > > B coumn B exactly as shown in sheet A column b as well as index to the

    > > next
    > > > line that contains this info.
    > > >
    > > > example:
    > > > Sheet A
    > > > A B
    > > > EMC, Safe PREPARE Checklist
    > > > ENVIR Send PCB for test
    > > > ID, EMC, SAFE Testing files complete
    > > >
    > > > Sheet B:
    > > > A B
    > > > PREPARE Checklist
    > > > Testing files complete
    > > >
    > > > I have tried using the following formula but I get empty lines "FALSE"
    > > > between the actual info and it is not pulling the information exactly

    as
    > > it
    > > > is on the other sheet. It is also not pulling all info from lines that
    > > > contain the EMC text. If EMC is listed as EMC, SAFE, ID, FW etc it

    does
    > > not
    > > > pull that line item.
    > > > =IF(Sheet!A6="EMC",Sheet!B6)
    > > >
    > > > Help, what am I doing wrong? I am a newbie and have spent several

    hours
    > > > looking through all the formulas/discussions you have provided to

    other
    > > users
    > > > but did not see one that would do what I am looking for on this sheet.
    > > > Your help would be appreciated.
    > > >
    > > > Thanks,
    > > > Trese
    > > >
    > > >

    > >
    > >
    > >




  5. #5
    Max
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    > In SheetA
    > -----
    > Put in D1: =IF(A1="","",IF(ISNUMBER(FIND("EMC",A1)),ROW(),""))


    Just some clarifications:

    I presumed you wanted the search for "EMC" to be case sensitive. That's why
    FIND was used in the above formula. If however, you need it to be
    case-insensitive, just replace FIND with SEARCH in the formula.

    And instead of hardcoding the target phrase "EMC" into the formula, we could
    point the formula at an adjacent cell, say: E1, and enter the target phrase
    in E1. This "softcoding" is useful if we have to do the same thing over for
    other target phrases.

    Then just put instead in D1:
    =IF(A1="","",IF(ISNUMBER(FIND($E$1,A1)),ROW(),""))
    and copy D1 down as before
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----



  6. #6
    Trese
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    Max,
    IT WORKED!!!

    I thought I corrected the line breaks but I guess I missed something the
    first time around. Anyway- thanks for your time and your help- I REALLY
    appreciate it.

    Trese

    "Max" wrote:

    > > In SheetA
    > > -----
    > > Put in D1: =IF(A1="","",IF(ISNUMBER(FIND("EMC",A1)),ROW(),""))

    >
    > Just some clarifications:
    >
    > I presumed you wanted the search for "EMC" to be case sensitive. That's why
    > FIND was used in the above formula. If however, you need it to be
    > case-insensitive, just replace FIND with SEARCH in the formula.
    >
    > And instead of hardcoding the target phrase "EMC" into the formula, we could
    > point the formula at an adjacent cell, say: E1, and enter the target phrase
    > in E1. This "softcoding" is useful if we have to do the same thing over for
    > other target phrases.
    >
    > Then just put instead in D1:
    > =IF(A1="","",IF(ISNUMBER(FIND($E$1,A1)),ROW(),""))
    > and copy D1 down as before
    > --
    > Rgds
    > Max
    > xl 97
    > ---
    > GMT+8, 1° 22' N 103° 45' E
    > xdemechanik <at>yahoo<dot>com
    > ----
    >
    >
    >


  7. #7
    Max
    Guest

    Re: how do I copy info from one sheet to another via a formula?

    Glad to hear that, Trese !
    Thanks for the feedback ..
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Trese" <[email protected]> wrote in message
    news:[email protected]...
    > Max,
    > IT WORKED!!!
    >
    > I thought I corrected the line breaks but I guess I missed something the
    > first time around. Anyway- thanks for your time and your help- I REALLY
    > appreciate it.
    >
    > Trese




+ 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