+ Reply to Thread
Results 1 to 10 of 10

Change General Format to Currency Format:figures together

  1. #1
    ScottO
    Guest

    Change General Format to Currency Format:figures together

    If I understand you correctly, the data may have imported as text, including
    the HKD suffix.
    If so, Select your last column and use Edit/Replace to find instances of HKD
    and replace with nothing.
    Rgds,
    ScottO

    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    | Dear all,
    |
    | I downloaded a file from an external program in Excel format. The file
    | contains 6 columns with the prices at the last column. I tried to sum up
    the
    | last column but found that the figures together with other text are in
    | "General" format - e.g. "$450.00HKD". As such, I cannot do any
    calculations.
    | Since the last column has 600+ rows and I don't want to change the cell
    | format one by one. Would any experts tell me how to change the cell value
    to
    | "$450.00" in currency format?
    |
    | Thanks.



  2. #2
    Ashish Mathur
    Guest

    re: Change General Format to Currency Format:figures together

    Hi Freshman,

    Assuming your data is in cell A12, array enter (Ctrl+Shift+Enter) the
    following formula in cell B12

    1*MID(A12,MATCH(TRUE,ISNUMBER(1*MID(A12,ROW($1:$18),1)),0),COUNT(1*MID(A12,ROW($1:$18),1))+IF(ISNUMBER(MATCH(".",MID(A12,ROW($1:$18),1),0)),1,0))

    This will give you the number only.

    Hope this helps

    Regards,

    Ashish Mathur

    "Freshman" wrote:

    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value to
    > "$450.00" in currency format?
    >
    > Thanks.


  3. #3
    Max
    Guest

    re: Change General Format to Currency Format:figures together

    Assuming the last col is col F, data from row1 down, and if the currency
    code are all 3 alphas ("HKD", "SGD", etc) at the rightmost end, then this
    might suffice:

    Put in say, G1: =LEFT(F1,LEN(F1)-3)+0
    Format G1 as currency, fill down
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up

    the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any

    calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value

    to
    > "$450.00" in currency format?
    >
    > Thanks.




  4. #4
    ScottO
    Guest

    re: Change General Format to Currency Format:figures together

    If I understand you correctly, the data may have imported as text, including
    the HKD suffix.
    If so, Select your last column and use Edit/Replace to find instances of HKD
    and replace with nothing.
    Rgds,
    ScottO

    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    | Dear all,
    |
    | I downloaded a file from an external program in Excel format. The file
    | contains 6 columns with the prices at the last column. I tried to sum up
    the
    | last column but found that the figures together with other text are in
    | "General" format - e.g. "$450.00HKD". As such, I cannot do any
    calculations.
    | Since the last column has 600+ rows and I don't want to change the cell
    | format one by one. Would any experts tell me how to change the cell value
    to
    | "$450.00" in currency format?
    |
    | Thanks.



  5. #5
    Ashish Mathur
    Guest

    re: Change General Format to Currency Format:figures together

    Hi Freshman,

    Assuming your data is in cell A12, array enter (Ctrl+Shift+Enter) the
    following formula in cell B12

    1*MID(A12,MATCH(TRUE,ISNUMBER(1*MID(A12,ROW($1:$18),1)),0),COUNT(1*MID(A12,ROW($1:$18),1))+IF(ISNUMBER(MATCH(".",MID(A12,ROW($1:$18),1),0)),1,0))

    This will give you the number only.

    Hope this helps

    Regards,

    Ashish Mathur

    "Freshman" wrote:

    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value to
    > "$450.00" in currency format?
    >
    > Thanks.


  6. #6
    Max
    Guest

    re: Change General Format to Currency Format:figures together

    Assuming the last col is col F, data from row1 down, and if the currency
    code are all 3 alphas ("HKD", "SGD", etc) at the rightmost end, then this
    might suffice:

    Put in say, G1: =LEFT(F1,LEN(F1)-3)+0
    Format G1 as currency, fill down
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up

    the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any

    calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value

    to
    > "$450.00" in currency format?
    >
    > Thanks.




  7. #7
    Freshman
    Guest

    Change General Format to Currency Format

    Dear all,

    I downloaded a file from an external program in Excel format. The file
    contains 6 columns with the prices at the last column. I tried to sum up the
    last column but found that the figures together with other text are in
    "General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
    Since the last column has 600+ rows and I don't want to change the cell
    format one by one. Would any experts tell me how to change the cell value to
    "$450.00" in currency format?

    Thanks.

  8. #8
    ScottO
    Guest

    re: Change General Format to Currency Format:figures together

    If I understand you correctly, the data may have imported as text, including
    the HKD suffix.
    If so, Select your last column and use Edit/Replace to find instances of HKD
    and replace with nothing.
    Rgds,
    ScottO

    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    | Dear all,
    |
    | I downloaded a file from an external program in Excel format. The file
    | contains 6 columns with the prices at the last column. I tried to sum up
    the
    | last column but found that the figures together with other text are in
    | "General" format - e.g. "$450.00HKD". As such, I cannot do any
    calculations.
    | Since the last column has 600+ rows and I don't want to change the cell
    | format one by one. Would any experts tell me how to change the cell value
    to
    | "$450.00" in currency format?
    |
    | Thanks.



  9. #9
    Ashish Mathur
    Guest

    re: Change General Format to Currency Format:figures together

    Hi Freshman,

    Assuming your data is in cell A12, array enter (Ctrl+Shift+Enter) the
    following formula in cell B12

    1*MID(A12,MATCH(TRUE,ISNUMBER(1*MID(A12,ROW($1:$18),1)),0),COUNT(1*MID(A12,ROW($1:$18),1))+IF(ISNUMBER(MATCH(".",MID(A12,ROW($1:$18),1),0)),1,0))

    This will give you the number only.

    Hope this helps

    Regards,

    Ashish Mathur

    "Freshman" wrote:

    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value to
    > "$450.00" in currency format?
    >
    > Thanks.


  10. #10
    Max
    Guest

    re: Change General Format to Currency Format:figures together

    Assuming the last col is col F, data from row1 down, and if the currency
    code are all 3 alphas ("HKD", "SGD", etc) at the rightmost end, then this
    might suffice:

    Put in say, G1: =LEFT(F1,LEN(F1)-3)+0
    Format G1 as currency, fill down
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Freshman" <[email protected]> wrote in message
    news:[email protected]...
    > Dear all,
    >
    > I downloaded a file from an external program in Excel format. The file
    > contains 6 columns with the prices at the last column. I tried to sum up

    the
    > last column but found that the figures together with other text are in
    > "General" format - e.g. "$450.00HKD". As such, I cannot do any

    calculations.
    > Since the last column has 600+ rows and I don't want to change the cell
    > format one by one. Would any experts tell me how to change the cell value

    to
    > "$450.00" in currency format?
    >
    > Thanks.




+ 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