+ Reply to Thread
Results 1 to 9 of 9

Thread: Seperating decimals and numericals

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    kuwait
    Posts
    5

    Seperating decimals and numericals

    I have a worksheet which contains amount, quantity and total where total is amount*quantity. The problems is that my amount contains to sub columns KD and fils, I manage to get the total but the total is not displayed in KD and fils infact the total is displayed in just one column.

    Could you please help me out

    Regards
    Tiyara

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372
    It's hard to follow without an example of your spreadsheet and what you are trying to obtain but here's what I think you are asking for.

    In one column, let's say E, you want Total Amount * Quantity.
    You have Quantity in Column D so that's not a problem but amount is either
    1. the sum of two columns (B and C) or
    2. either column B or C, it varies.

    I think in either case in column E, you could use
    =(B2+C2)*D2
    Sorry if I got this all wrong and I might have.

    ChemistB

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    kuwait
    Posts
    5

    Seperating Decimals and Integers

    Hi,

    Thank you for your reply...i will explain my spreadsheet clearly...

    Unit Price Quantity Total
    KD Fils KD. Fils
    4 0.5 3
    10 0.1 4
    9 200 2

    As, you can see.....the unit price is mentioned in seperate columns....as KD. and fils ( A column for KD and B column for fils...and C column for Quantity)

    Now, I know total will be (A1+B1) * C1.........hence the total being displayed in D1 which is 13.500 in the above example.....but I want the total to come in seperate columns.....for instance the 13 to be in D1 and the .500 value to be in E1....

    I hope i explained it properly

    Regards
    Tiyara
    Last edited by tiyara; 08-31-2008 at 04:17 AM. Reason: No title

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372
    In D1
    =INT(A1+B1)*C1
    In E1
    =(A1+B1)*C1-D1
    Does that work for you?

    ChemistB

  5. #5
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    618

    example for you

    see the attachment
    here is an example for you
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372
    Okay, I looked at the attachment and it looks like you are using the formulas I suggested. What is it not doing that you want it to do?

    ChemistB

  7. #7
    Registered User
    Join Date
    08-21-2008
    Location
    kuwait
    Posts
    5

    Seperating Decimals and Integers

    Hi,

    Thank you for all the help, I managed to get the problem solved...

    Attached is a sample of the excel sheet i was looking for, maybe you could help me modify it in a better way.

    Regards
    Tiyara
    Attached Files Attached Files

  8. #8
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    Posts
    167
    Try this:

    H9

    =INT((G9/1000+F9)*E9)
    I9

    =1000*((G9/1000+F9)*E9-H9)

  9. #9
    Registered User
    Join Date
    08-21-2008
    Location
    kuwait
    Posts
    5

    Seperating Decimals and Integers

    Thank you for your reply ...both the codes are working perfectly fine...appreciate all the help

    Regards
    Tiyara

+ 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.2.0