+ Reply to Thread
Results 1 to 11 of 11

How To Do It ??

  1. #1
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    How To Do It ??

    Well I'm So Confused I Can't Think How To Do A Formula To Give Me What I Want In The End .... Any One Can Help Me Plz ???!!
    The File Is Attached If Anything Not Clear Plz Just Tell Me
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-04-2006
    Posts
    117
    not exactly sure what you want. Can you be more specific?

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Does this work for "first" before I look at "Second"

    =IF(A1<1,A1,IF(A1>1,1,1))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    more clearly

    Ty for reply ... well what i mean is
    can IF formula return the negative value in some cell to another
    and return the value of the same cell if its posstive , to another cell ??

    i will talk about the value in the cell I2 ..if it's negative i want the cell to be zero and to return the negative amount to some other cell

    and if its positive and more than 1.00 i want it to be in the same cell by just the amount 1.00 and to return what's more than 1.00 to another cell

  5. #5
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    can IF formula return the negative value in some cell to another
    and return the value of the same cell if its posstive , to another cell ??
    If I parse this question to read as follows: "can [a] formula return ... [a] value ... to another cell?"

    Then, the answer is "no". It is impossible to change a value in cell "x" using a formula in cell "y".

  6. #6
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    hi

    sorry mr. but this formula have something wrong
    =IF(A1<1,A1,IF(A1>1,1,1))
    ty for being here i apricate ur concern

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    What's wrong then ??

    Do you care to expand ??

    VBA Noob

  8. #8
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    more cleary

    Ok Sirs ..may u download my Excel sheet and follow with me
    this is a part of a sheet to control the calls of the employers on the mobiles of the company
    so .. there is a limit for the calls
    and there is a limit for the SMS
    if the employer has accrossed any of those limits so he will have to pay that from his pocket

    now
    lets say that's A3 is the total amount of the invoice and it's 25.00
    and C3 is the limit of the calls and it's 15.00
    and F3 is the limit of the SMS and it's 1.00

    the invoice details saying that he used 20.00 for calls and 5.00 for SMS

    i think now it's very clear

    what is want is 3 cells
    the first 1 to put in it the calls amount (20.00)
    the second one is to put in it the SMS amount (5.00)
    the third one is to give me the invoice total

    i'm online now still and thanks for both of u for being here

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I assume this is for second sheet....which I said I didn't look at ??

    Still waiting to here what was wrong with the first one

    VBA Noob

  10. #10
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    dear VBA

    Sir both of them is one sheet but i give them in 2 sheets to explain it in the 2 cases (if the employer not accross the limit, and if he accrossed it)
    all should be in same row ... i wasnt know how to explain it , but now i send it all above this mes.
    the wrong with the formula i don't know but it not accept it cause of a coma or something thats all

  11. #11
    Forum Contributor nasser's Avatar
    Join Date
    12-29-2006
    Location
    Kuwait
    MS-Off Ver
    2010-2013-2016
    Posts
    216

    Thumbs up Thank You

    DEAR VBA... i want to thank you very much and to tell u that this IF+IF i working very well and it's ok

    thankh you again wish u alot of good luck in ur life

    best regards

+ 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