+ Reply to Thread
Results 1 to 3 of 3

Formula: Alternate cell values

  1. #1
    Registered User
    Join Date
    10-30-2007
    Posts
    6

    Formula: Alternate cell values

    Ok not sure how to ask this one but here I go.
    I have 3 cells A1, A2, & A3. I want to leave A1 & A3 empty so that the user can input his own value without overwriting any formula there.

    Now for the confusing part (to me at least), I want to put a formula in cell A2 that says if A1 has data then copy that data into A3 else if A3 has data copy the data to A1.

    reason I need this is cause I have 3 sheets with the same information being entered from different sources. So I have a series of blank lines so the data can be expanded. So I want full flexibility for the user to add a source to a line and have it translated to the same line in the other sheets.
    eg.: I add to store 1's first blank line "coffee filters" then I want the first blank line in the other 2 stores to say "coffee filters" But I don't want to put a formula into the blank lines.

    So I figure there is a way for me to say in A2 if A1 is not empty then make A3=A1, else if A3 is not empty then make A1=A3, else do nothing.

    so A1 & A3 have no formula but the formula in A2 puts values into A1 or A3.

    I know I may have been a bit redundant but I hope I put it in ways so that any of you great helpers can see what I'm going for. I tend to not give enough information.
    thanks for any help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Formula: Alternate cell values

    You're not going to do what you want with formulae. A cell has a formula or a value but not both. The value can be "nothing" or null or whatever you want to refer to it as.

    You'd need VBA but I don't really follow the logic of where you want data. I thought I did at first but I lost the plot when you started referring to other sheets.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-30-2007
    Posts
    6

    Re: Formula: Alternate cell values

    I was worried that it might require vba. But I can deal with that. Well if you understood the beginning then you know what I am shooting for. As for the multiple sheets it would just be cell reference like 'store 1'A1, 'store 2'A1, & 'store 3'A1. just looking at the possibility of including multiple sheets within the same workbook.

+ 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