+ Reply to Thread
Results 1 to 7 of 7

Equal figure only if there is data

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Equal figure only if there is data

    I have a rota on sheet one and a costs table on sheet 2. Sheet 2 currently grabs data from sheet one and it all works great

    Colum A1 grabs name and colum Z1 grabs costs. for all my staff it works good but i have supervisors that are on salery, i need z1 to report a cost of 350 but only if there is a name in colum a1. any way i can do this?

    thanks

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Equal figure only if there is data

    In Z1 enter =IF(A1="","",350)

  3. #3
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Equal figure only if there is data

    Quote Originally Posted by arthurbr View Post
    In Z1 enter =IF(A1="","",350)
    it does work because A1 is already set to grab whatever name is in A1 Sheet 1, therefor when there is no name in A1 Sheet 2 it displays a 0 which i gues your code picks up the 0 as text, i suppose is there a way to tell it to = that amount only if there is actual text not a number?

    James

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Equal figure only if there is data

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Equal figure only if there is data

    Quote Originally Posted by arthurbr View Post
    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    I will do that but maybe a way of making it easier is can i do the following

    if z1 is over 25 z2 = 350?

    thanks

  6. #6
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    = IF over

    Hi i need a simple forumla i belive, i want cell z9 to = 350 if x9 is over 25. if it is not i want it to stay as 0.

    Any ideas?

    thanks

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Equal figure only if there is data

    =if(x9>25,350,0)

+ 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