+ Reply to Thread
Results 1 to 21 of 21

Sort function or macro for the first 4 letters

  1. #1
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Suppose your dollars are in column B and the rpoductname in column C, then
    use something like this

    =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))

    Mangesh




    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > If i have several rows with product data is there a way to get it to

    search
    > for hits simular to the first 4 letters ? then of course sumit up to 1

    result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz




  2. #2
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    And for the units (which are in columns A) use:

    =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))

    Note that the units are plain numbers (21) and not (21 units).

    Mangesh



    "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > Suppose your dollars are in column B and the rpoductname in column C, then
    > use something like this
    >
    > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    >
    > Mangesh
    >
    >
    >
    >
    > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > If i have several rows with product data is there a way to get it to

    > search
    > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > result.
    > >
    > > for exampel:
    > > the data sheet:
    > >
    > > 21 units 200$ candyliqurish
    > > 50 units 200$ candyfudge
    > > 20 units 300$ candylollypop
    > >
    > > the result sheet:
    > >
    > > 91 units 700$ candy*****
    > >
    > > this forum i sthe best !!
    > >
    > > thanks to all competent people !
    > >
    > > best regards Matz

    >
    >




  3. #3
    Matz
    Guest

    Re: Sort function or macro for the first 4 letters

    Hi

    Ive tryed that but i have to many different products, i would like a macro
    that par the first 4 letters without me specify every single one...

    thanks for your respone though.

    //Matz

    "Mangesh Yadav" skrev:

    > And for the units (which are in columns A) use:
    >
    > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    >
    > Note that the units are plain numbers (21) and not (21 units).
    >
    > Mangesh
    >
    >
    >
    > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > Suppose your dollars are in column B and the rpoductname in column C, then
    > > use something like this
    > >
    > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Mangesh
    > >
    > >
    > >
    > >
    > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > If i have several rows with product data is there a way to get it to

    > > search
    > > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > > result.
    > > >
    > > > for exampel:
    > > > the data sheet:
    > > >
    > > > 21 units 200$ candyliqurish
    > > > 50 units 200$ candyfudge
    > > > 20 units 300$ candylollypop
    > > >
    > > > the result sheet:
    > > >
    > > > 91 units 700$ candy*****
    > > >
    > > > this forum i sthe best !!
    > > >
    > > > thanks to all competent people !
    > > >
    > > > best regards Matz

    > >
    > >

    >
    >
    >


  4. #4
    Dave Peterson
    Guest

    Re: Sort function or macro for the first 4 letters

    I would add headers, then use a helper column of cells:

    =left(d2,4)
    and drag down
    (4 or 5 characters????)

    Then either sort that data by the helper column and use Data|subototals or
    (without sorting) data|pivottable to get my summary.




    Matz wrote:
    >
    > If i have several rows with product data is there a way to get it to search
    > for hits simular to the first 4 letters ? then of course sumit up to 1 result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz


    --

    Dave Peterson

  5. #5
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Sorry, I did not understand. Can you give a few examples. Do you mean to say
    just see whichever different set of groups having first 4 characters
    same...?

    Mangesh



    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:CB1F9CD3-8AA9-4446-81F1-8F9BEFBCA890@microsoft.com...
    > Hi
    >
    > Ive tryed that but i have to many different products, i would like a macro
    > that par the first 4 letters without me specify every single one...
    >
    > thanks for your respone though.
    >
    > //Matz
    >
    > "Mangesh Yadav" skrev:
    >
    > > And for the units (which are in columns A) use:
    > >
    > > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Note that the units are plain numbers (21) and not (21 units).
    > >
    > > Mangesh
    > >
    > >
    > >
    > > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > > Suppose your dollars are in column B and the rpoductname in column C,

    then
    > > > use something like this
    > > >
    > > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > > >
    > > > Mangesh
    > > >
    > > >
    > > >
    > > >
    > > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > > If i have several rows with product data is there a way to get it to
    > > > search
    > > > > for hits simular to the first 4 letters ? then of course sumit up to

    1
    > > > result.
    > > > >
    > > > > for exampel:
    > > > > the data sheet:
    > > > >
    > > > > 21 units 200$ candyliqurish
    > > > > 50 units 200$ candyfudge
    > > > > 20 units 300$ candylollypop
    > > > >
    > > > > the result sheet:
    > > > >
    > > > > 91 units 700$ candy*****
    > > > >
    > > > > this forum i sthe best !!
    > > > >
    > > > > thanks to all competent people !
    > > > >
    > > > > best regards Matz
    > > >
    > > >

    > >
    > >
    > >




  6. #6
    Dave Peterson
    Guest

    Re: Sort function or macro for the first 4 letters

    I would add headers, then use a helper column of cells:

    =left(d2,4)
    and drag down
    (4 or 5 characters????)

    Then either sort that data by the helper column and use Data|subototals or
    (without sorting) data|pivottable to get my summary.




    Matz wrote:
    >
    > If i have several rows with product data is there a way to get it to search
    > for hits simular to the first 4 letters ? then of course sumit up to 1 result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz


    --

    Dave Peterson

  7. #7
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Sorry, I did not understand. Can you give a few examples. Do you mean to say
    just see whichever different set of groups having first 4 characters
    same...?

    Mangesh



    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:CB1F9CD3-8AA9-4446-81F1-8F9BEFBCA890@microsoft.com...
    > Hi
    >
    > Ive tryed that but i have to many different products, i would like a macro
    > that par the first 4 letters without me specify every single one...
    >
    > thanks for your respone though.
    >
    > //Matz
    >
    > "Mangesh Yadav" skrev:
    >
    > > And for the units (which are in columns A) use:
    > >
    > > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Note that the units are plain numbers (21) and not (21 units).
    > >
    > > Mangesh
    > >
    > >
    > >
    > > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > > Suppose your dollars are in column B and the rpoductname in column C,

    then
    > > > use something like this
    > > >
    > > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > > >
    > > > Mangesh
    > > >
    > > >
    > > >
    > > >
    > > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > > If i have several rows with product data is there a way to get it to
    > > > search
    > > > > for hits simular to the first 4 letters ? then of course sumit up to

    1
    > > > result.
    > > > >
    > > > > for exampel:
    > > > > the data sheet:
    > > > >
    > > > > 21 units 200$ candyliqurish
    > > > > 50 units 200$ candyfudge
    > > > > 20 units 300$ candylollypop
    > > > >
    > > > > the result sheet:
    > > > >
    > > > > 91 units 700$ candy*****
    > > > >
    > > > > this forum i sthe best !!
    > > > >
    > > > > thanks to all competent people !
    > > > >
    > > > > best regards Matz
    > > >
    > > >

    > >
    > >
    > >




  8. #8
    Matz
    Guest

    Re: Sort function or macro for the first 4 letters

    Hi

    Ive tryed that but i have to many different products, i would like a macro
    that par the first 4 letters without me specify every single one...

    thanks for your respone though.

    //Matz

    "Mangesh Yadav" skrev:

    > And for the units (which are in columns A) use:
    >
    > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    >
    > Note that the units are plain numbers (21) and not (21 units).
    >
    > Mangesh
    >
    >
    >
    > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > Suppose your dollars are in column B and the rpoductname in column C, then
    > > use something like this
    > >
    > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Mangesh
    > >
    > >
    > >
    > >
    > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > If i have several rows with product data is there a way to get it to

    > > search
    > > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > > result.
    > > >
    > > > for exampel:
    > > > the data sheet:
    > > >
    > > > 21 units 200$ candyliqurish
    > > > 50 units 200$ candyfudge
    > > > 20 units 300$ candylollypop
    > > >
    > > > the result sheet:
    > > >
    > > > 91 units 700$ candy*****
    > > >
    > > > this forum i sthe best !!
    > > >
    > > > thanks to all competent people !
    > > >
    > > > best regards Matz

    > >
    > >

    >
    >
    >


  9. #9
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    And for the units (which are in columns A) use:

    =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))

    Note that the units are plain numbers (21) and not (21 units).

    Mangesh



    "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > Suppose your dollars are in column B and the rpoductname in column C, then
    > use something like this
    >
    > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    >
    > Mangesh
    >
    >
    >
    >
    > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > If i have several rows with product data is there a way to get it to

    > search
    > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > result.
    > >
    > > for exampel:
    > > the data sheet:
    > >
    > > 21 units 200$ candyliqurish
    > > 50 units 200$ candyfudge
    > > 20 units 300$ candylollypop
    > >
    > > the result sheet:
    > >
    > > 91 units 700$ candy*****
    > >
    > > this forum i sthe best !!
    > >
    > > thanks to all competent people !
    > >
    > > best regards Matz

    >
    >




  10. #10
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Suppose your dollars are in column B and the rpoductname in column C, then
    use something like this

    =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))

    Mangesh




    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > If i have several rows with product data is there a way to get it to

    search
    > for hits simular to the first 4 letters ? then of course sumit up to 1

    result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz




  11. #11
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Sorry, I did not understand. Can you give a few examples. Do you mean to say
    just see whichever different set of groups having first 4 characters
    same...?

    Mangesh



    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:CB1F9CD3-8AA9-4446-81F1-8F9BEFBCA890@microsoft.com...
    > Hi
    >
    > Ive tryed that but i have to many different products, i would like a macro
    > that par the first 4 letters without me specify every single one...
    >
    > thanks for your respone though.
    >
    > //Matz
    >
    > "Mangesh Yadav" skrev:
    >
    > > And for the units (which are in columns A) use:
    > >
    > > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Note that the units are plain numbers (21) and not (21 units).
    > >
    > > Mangesh
    > >
    > >
    > >
    > > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > > Suppose your dollars are in column B and the rpoductname in column C,

    then
    > > > use something like this
    > > >
    > > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > > >
    > > > Mangesh
    > > >
    > > >
    > > >
    > > >
    > > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > > If i have several rows with product data is there a way to get it to
    > > > search
    > > > > for hits simular to the first 4 letters ? then of course sumit up to

    1
    > > > result.
    > > > >
    > > > > for exampel:
    > > > > the data sheet:
    > > > >
    > > > > 21 units 200$ candyliqurish
    > > > > 50 units 200$ candyfudge
    > > > > 20 units 300$ candylollypop
    > > > >
    > > > > the result sheet:
    > > > >
    > > > > 91 units 700$ candy*****
    > > > >
    > > > > this forum i sthe best !!
    > > > >
    > > > > thanks to all competent people !
    > > > >
    > > > > best regards Matz
    > > >
    > > >

    > >
    > >
    > >




  12. #12
    Dave Peterson
    Guest

    Re: Sort function or macro for the first 4 letters

    I would add headers, then use a helper column of cells:

    =left(d2,4)
    and drag down
    (4 or 5 characters????)

    Then either sort that data by the helper column and use Data|subototals or
    (without sorting) data|pivottable to get my summary.




    Matz wrote:
    >
    > If i have several rows with product data is there a way to get it to search
    > for hits simular to the first 4 letters ? then of course sumit up to 1 result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz


    --

    Dave Peterson

  13. #13
    Matz
    Guest

    Re: Sort function or macro for the first 4 letters

    Hi

    Ive tryed that but i have to many different products, i would like a macro
    that par the first 4 letters without me specify every single one...

    thanks for your respone though.

    //Matz

    "Mangesh Yadav" skrev:

    > And for the units (which are in columns A) use:
    >
    > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    >
    > Note that the units are plain numbers (21) and not (21 units).
    >
    > Mangesh
    >
    >
    >
    > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > Suppose your dollars are in column B and the rpoductname in column C, then
    > > use something like this
    > >
    > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Mangesh
    > >
    > >
    > >
    > >
    > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > If i have several rows with product data is there a way to get it to

    > > search
    > > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > > result.
    > > >
    > > > for exampel:
    > > > the data sheet:
    > > >
    > > > 21 units 200$ candyliqurish
    > > > 50 units 200$ candyfudge
    > > > 20 units 300$ candylollypop
    > > >
    > > > the result sheet:
    > > >
    > > > 91 units 700$ candy*****
    > > >
    > > > this forum i sthe best !!
    > > >
    > > > thanks to all competent people !
    > > >
    > > > best regards Matz

    > >
    > >

    >
    >
    >


  14. #14
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    And for the units (which are in columns A) use:

    =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))

    Note that the units are plain numbers (21) and not (21 units).

    Mangesh



    "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > Suppose your dollars are in column B and the rpoductname in column C, then
    > use something like this
    >
    > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    >
    > Mangesh
    >
    >
    >
    >
    > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > If i have several rows with product data is there a way to get it to

    > search
    > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > result.
    > >
    > > for exampel:
    > > the data sheet:
    > >
    > > 21 units 200$ candyliqurish
    > > 50 units 200$ candyfudge
    > > 20 units 300$ candylollypop
    > >
    > > the result sheet:
    > >
    > > 91 units 700$ candy*****
    > >
    > > this forum i sthe best !!
    > >
    > > thanks to all competent people !
    > >
    > > best regards Matz

    >
    >




  15. #15
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Suppose your dollars are in column B and the rpoductname in column C, then
    use something like this

    =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))

    Mangesh




    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > If i have several rows with product data is there a way to get it to

    search
    > for hits simular to the first 4 letters ? then of course sumit up to 1

    result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz




  16. #16
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Sorry, I did not understand. Can you give a few examples. Do you mean to say
    just see whichever different set of groups having first 4 characters
    same...?

    Mangesh



    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:CB1F9CD3-8AA9-4446-81F1-8F9BEFBCA890@microsoft.com...
    > Hi
    >
    > Ive tryed that but i have to many different products, i would like a macro
    > that par the first 4 letters without me specify every single one...
    >
    > thanks for your respone though.
    >
    > //Matz
    >
    > "Mangesh Yadav" skrev:
    >
    > > And for the units (which are in columns A) use:
    > >
    > > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Note that the units are plain numbers (21) and not (21 units).
    > >
    > > Mangesh
    > >
    > >
    > >
    > > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > > Suppose your dollars are in column B and the rpoductname in column C,

    then
    > > > use something like this
    > > >
    > > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > > >
    > > > Mangesh
    > > >
    > > >
    > > >
    > > >
    > > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > > If i have several rows with product data is there a way to get it to
    > > > search
    > > > > for hits simular to the first 4 letters ? then of course sumit up to

    1
    > > > result.
    > > > >
    > > > > for exampel:
    > > > > the data sheet:
    > > > >
    > > > > 21 units 200$ candyliqurish
    > > > > 50 units 200$ candyfudge
    > > > > 20 units 300$ candylollypop
    > > > >
    > > > > the result sheet:
    > > > >
    > > > > 91 units 700$ candy*****
    > > > >
    > > > > this forum i sthe best !!
    > > > >
    > > > > thanks to all competent people !
    > > > >
    > > > > best regards Matz
    > > >
    > > >

    > >
    > >
    > >




  17. #17
    Matz
    Guest

    Re: Sort function or macro for the first 4 letters

    Hi

    Ive tryed that but i have to many different products, i would like a macro
    that par the first 4 letters without me specify every single one...

    thanks for your respone though.

    //Matz

    "Mangesh Yadav" skrev:

    > And for the units (which are in columns A) use:
    >
    > =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))
    >
    > Note that the units are plain numbers (21) and not (21 units).
    >
    > Mangesh
    >
    >
    >
    > "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    > news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > > Suppose your dollars are in column B and the rpoductname in column C, then
    > > use something like this
    > >
    > > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    > >
    > > Mangesh
    > >
    > >
    > >
    > >
    > > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > > If i have several rows with product data is there a way to get it to

    > > search
    > > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > > result.
    > > >
    > > > for exampel:
    > > > the data sheet:
    > > >
    > > > 21 units 200$ candyliqurish
    > > > 50 units 200$ candyfudge
    > > > 20 units 300$ candylollypop
    > > >
    > > > the result sheet:
    > > >
    > > > 91 units 700$ candy*****
    > > >
    > > > this forum i sthe best !!
    > > >
    > > > thanks to all competent people !
    > > >
    > > > best regards Matz

    > >
    > >

    >
    >
    >


  18. #18
    Dave Peterson
    Guest

    Re: Sort function or macro for the first 4 letters

    I would add headers, then use a helper column of cells:

    =left(d2,4)
    and drag down
    (4 or 5 characters????)

    Then either sort that data by the helper column and use Data|subototals or
    (without sorting) data|pivottable to get my summary.




    Matz wrote:
    >
    > If i have several rows with product data is there a way to get it to search
    > for hits simular to the first 4 letters ? then of course sumit up to 1 result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz


    --

    Dave Peterson

  19. #19
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    And for the units (which are in columns A) use:

    =SUMPRODUCT(A1:A10,--(LEFT(C1:C10,2)="cand"))

    Note that the units are plain numbers (21) and not (21 units).

    Mangesh



    "Mangesh Yadav" <mangesh.NOSPAMyadav@gmail.com> wrote in message
    news:OAB867FrFHA.3720@TK2MSFTNGP14.phx.gbl...
    > Suppose your dollars are in column B and the rpoductname in column C, then
    > use something like this
    >
    > =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))
    >
    > Mangesh
    >
    >
    >
    >
    > "Matz" <Matz@discussions.microsoft.com> wrote in message
    > news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > > If i have several rows with product data is there a way to get it to

    > search
    > > for hits simular to the first 4 letters ? then of course sumit up to 1

    > result.
    > >
    > > for exampel:
    > > the data sheet:
    > >
    > > 21 units 200$ candyliqurish
    > > 50 units 200$ candyfudge
    > > 20 units 300$ candylollypop
    > >
    > > the result sheet:
    > >
    > > 91 units 700$ candy*****
    > >
    > > this forum i sthe best !!
    > >
    > > thanks to all competent people !
    > >
    > > best regards Matz

    >
    >




  20. #20
    Mangesh Yadav
    Guest

    Re: Sort function or macro for the first 4 letters

    Suppose your dollars are in column B and the rpoductname in column C, then
    use something like this

    =SUMPRODUCT(B1:B10,--(LEFT(C1:C10,2)="cand"))

    Mangesh




    "Matz" <Matz@discussions.microsoft.com> wrote in message
    news:7AEE5CE2-ABC9-4F64-AD19-1562C4188DEF@microsoft.com...
    > If i have several rows with product data is there a way to get it to

    search
    > for hits simular to the first 4 letters ? then of course sumit up to 1

    result.
    >
    > for exampel:
    > the data sheet:
    >
    > 21 units 200$ candyliqurish
    > 50 units 200$ candyfudge
    > 20 units 300$ candylollypop
    >
    > the result sheet:
    >
    > 91 units 700$ candy*****
    >
    > this forum i sthe best !!
    >
    > thanks to all competent people !
    >
    > best regards Matz




  21. #21
    Matz
    Guest

    Sort function or macro for the first 4 letters

    If i have several rows with product data is there a way to get it to search
    for hits simular to the first 4 letters ? then of course sumit up to 1 result.

    for exampel:
    the data sheet:

    21 units 200$ candyliqurish
    50 units 200$ candyfudge
    20 units 300$ candylollypop

    the result sheet:

    91 units 700$ candy*****

    this forum i sthe best !!

    thanks to all competent people !

    best regards Matz

+ 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