1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Excel spreadsheet formula question

Discussion in 'Other PC Software' started by Anakalia, 2005/01/06.

Thread Status:
Not open for further replies.
  1. 2005/01/06
    Anakalia

    Anakalia Inactive Thread Starter

    Joined:
    2002/01/17
    Messages:
    99
    Likes Received:
    0
    Here's what I want to do:

    Sheet1 has a quick form to fill out that includes name, address1, address2, and city/state/zip fields.

    Sheet2 grabs this information for uniform printing. (yeah, yeah, this should all be done in Access, at least, but it's not going to happen that way!) :)

    When there isn't a need for the Address2 line, I want Sheet2 to be able to come in and remove the null value and then bring up the city/state/zip value.

    Example:
    Name: Bob Test
    Add1: 123 main street
    Add2:
    Add3: NY, NY 11111

    On sheet 2, I want it to say:
    Bob Test
    123 Main Street
    NY, NY 11111

    It currently says:
    Bob Test
    123 Main Street
    0
    NY,NY 11111

    How can I get it to copy the 3rd field into the 2nd field if it has a null value?

    Confused yet?
     
  2. 2005/01/06
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Assuming the source sheet data fields are A1...A4, then:

    Try this for add2: formula on the target sheet:

    =IF(A3>" ",A3,A4)

    and for add3: formula on the target sheet:

    =IF(A3>" ",A4," ")

    You'll have to add the page being sourced to the formula of course. (A3:sheet1)

    That will give you a three line address when occurs, without a space.
     

  3. to hide this advert.

  4. 2005/01/07
    Anakalia

    Anakalia Inactive Thread Starter

    Joined:
    2002/01/17
    Messages:
    99
    Likes Received:
    0
    Okay, I tried it, and madea modification to the formula, and now I'm REALLY stumped.

    Here's what I'm doing:
    On sheet 1:
    B1: Bob
    B2: street
    B3: null or apt.
    B4: city

    On sheet 2, the formulas are:
    C1: =sheet1!b1
    C2: =sheet1!b2
    c3: =IF(sheet1!b3=" ",b4,b3)
    C4: =IF(sheet1!b3=" "," ",b4)

    However - this doesn't work, but it should work. Here's the part that stumps me. I started off by doing these formulas all on one page:

    A7: Bob
    A8: street
    A9: null or apt.
    A10: city

    D7: =A7
    D8: =A8
    D9: =IF(A9=" ",A10,A9)
    D10: =IF(A9=" "," ",A10)

    Can anyone tell me how a formula can work on one sheet, but can't work between sheets???

    I'm stumped!!!!
     
  5. 2005/01/07
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Try these formulas in your C3 and C4 cells respectively:

    =IF(Sheet1!B3>" ",Sheet1!B3,Sheet1!B4

    =IF(Sheet1!B3>" ",Sheet1!B4," ")

    Should work. You just forgot to use the Sheet id for each source cell reference. The > symbol is also necessary. You can use the < symbol also, it makes no diff.
     
    Last edited: 2005/01/07
  6. 2005/01/07
    Anakalia

    Anakalia Inactive Thread Starter

    Joined:
    2002/01/17
    Messages:
    99
    Likes Received:
    0
    thank you! It works now!
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.