+ Reply to Thread
Results 1 to 11 of 11

Formula Not Reading Cell Data Correctly

  1. #1
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Question Formula Not Reading Cell Data Correctly

    Hi there,

    I have a somewhat strange situation where formulas that are linked to Cell C5 on my 'Inspection Report' sheet aren't reading it correctly. I've attached a sample with the linked cells in yellow, and here is a basic description of how it should be working:

    Cell C5 on the Entry Page sheet receives a number. (In our case, 22.) Cell C5 on the Inspection Report sheet now displays 22, which is great - but notice Cell S7 - this is only supposed to appear if C5 is greater than 49, but it's appearing at 22. And upon visiting the Inspection Report Attachment sheet, we see that Cell R1 displays 3, which is specified in it's formula only to show a 3 if Cell C5 on the Inspection Report is greater than 160. The columns of numbers are also linked to Cell C5 on the Inspection Report sheet and are also not displaying correctly.

    I have noticed that if I enter a number in Cell I8 on the Entry Page sheet (which is sometimes required, but not always), everything works like it should.

    I've been scratching my head for a while here, does anyone know what's going on?

    NOTE: A 'run-time' error will pop up upon opening the workbook - just click 'End' - this is only because this is a sample with sheets missing.
    Attached Files Attached Files
    There is so much good in the worst of us,
    And so much bad in the best of us,
    That it hardly behooves any of us
    To talk about the rest of us.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula Not Reading Cell Data Correctly

    Hi

    I think...

    In Entrypage! C5, change the format from text to number....
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Formula Not Reading Cell Data Correctly

    Haha! Wow! I'm glad it was so simple! Thank you so much, Fotis1991!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula Not Reading Cell Data Correctly

    ..Simple is good my friend!

  5. #5
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Formula Not Reading Cell Data Correctly

    Oops, I've found an issue I missed - when I changed the format of Cell C5 on the Entry page from text to number, it fixed everything except this: when I delete C5 on the Entry Page, the yellow columns on the Inspection Report Attachment all get numbers, due to the formula in Cell A6 on that sheet. Why isn't that formula working?

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula Not Reading Cell Data Correctly

    Hi

    Problem is here(Red color)--Inpection report C5.

    =IF(AND('Entry Page'!$I$8>0; 'Entry Page'!$I$8<>0);('Entry Page'!$I$8*'Entry Page'!$C$5);('Entry Page'!$C$5))

    This "says" that if "Entry Page!I8>or <>(DIFFERENT) TO 0,then I8*C5(in this case) 0*0 OR C5. That is, O

    Apologize for my poor English..

  7. #7
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Formula Not Reading Cell Data Correctly

    Ah, and 0 is counted as an entry then? Would there be a different way of saying this on Cell A6 on the Inspection Report Attachment ?: =IF('Inspection Report'!$C$5="","","1")

    I've been trying to do something with =IF(COUNTBLANK('Inspection Report'!$C$5)=0,"","1"), but that doesn't seem to work properly either.

    And your English isn't poor at all, it's my Greek that isn't any good.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula Not Reading Cell Data Correctly

    ..So, my friend, it's All Greeks to you...

    Pls, explain me, in Inspection Report M7-M8 etc..Why and by which conditions do you need these texts to dissapear..

  9. #9
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Formula Not Reading Cell Data Correctly

    Haha, I guess it is.

    Those cells (M7 -V8) are working now since your first fix, these are no longer a problem - but since you asked, the first two (M7 & M8) are only needed to display their data when Cell C5 is greater than 1, P7 & P8 when C5 is greater than 19, S7 & S8 when C5 is greater than 49, and V7 & V8 when C5 is greater than 99. This is because the quantity determines how many samples we need, so having them automatically hide and appear is very useful to us.

    The cells I'm having trouble with are the 6 yellow columns on the Inspection Report Attachment - they represent each individual part, so there must not be any numbers there if Cell C5 on the Inspection Report Attachment is empty - likewise, they must appear when a number is in Cell C5, but only the amount that is entered in that cell.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula Not Reading Cell Data Correctly

    Doesn't changing A6 to:

    =IF('Inspection Report'!$C$5=0,"","1")

    work.

    Btw, the 1 shouldn't reallly by in quotes if you want it to be a real number

    e.g.

    =IF('Inspection Report'!$C$5=0,"",1)

    also formula in Inspection Report, C5 should be:

    =IF('Entry Page'!$I$8>0,'Entry Page'!$I$8*'Entry Page'!$C$5,'Entry Page'!$C$5)

    i.e. if I8 is greater than 0, then it won't be equal to 0...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  11. #11
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Formula Not Reading Cell Data Correctly

    Yes! That does it! I attached the working sample. Thank you so much, both of you.
    Attached Files Attached Files

+ 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