+ Reply to Thread
Results 1 to 8 of 8

Formula which works in one cell but not another?

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Formula which works in one cell but not another?

    Hi all,

    Im really confused over a formula i have in my spreadsheet, it works in most cells except those that have ".....Blue Whale - GBP" at the end of them, i highighted in yellow which ones dont seem to be working, would someone please mind taking a look for me, as i hae tried for the last 2 hours and still dont get why it doesnt work...

    It would be saving me alot of anger and stress

    Thanks

    Dan
    Attached Files Attached Files

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Formula which works in one cell but not another?

    Your formula does work - it returns 0. This is hidden by conditional formatting. The 0 is returned because the AVERAGEIFS formulas refer to cells in column T which have Text rather than number values.
    Last edited by Izandol; 01-14-2014 at 12:21 PM.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula which works in one cell but not another?

    It looks to me as though some of the data in column S is entered as text (the currency symbol is part of the cell value, not formatting) whereas others are a number value.

    The blue whale ones happen to correspond to ones with the currency symbol "hard-coded", for example, if you look in the formula bar of S14 you wil see "£11.50" whereas the formula bar of S57 is "18.60"

    I think this corresponds to whether the values are pounds or euros.

    I think if you change your column T formula to:
    =IF(K14="EUR",1*S14/$G$1,IF(K14="USD",1*S14/$G$2,1*S14))
    in T14 and copy down

    that might fix things.

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Formula which works in one cell but not another?

    Izandol, yes that would be perfect if there was no value in column S, but for those parts there is, so im happy the iferror part is working, but couldnt figure out why it wouldnt pick up the value,

    I will give that a try yudlugar thank you, hopefully thats the reason

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Formula which works in one cell but not another?

    Perfect!! that fixed it thank you

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula which works in one cell but not another?

    No problem - For what it's worth I think Izandol was suggesting the same as me - you didn't have a value, you had text, so an arithmetic function such as averageif() would not work with your data.

  7. #7
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Formula which works in one cell but not another?

    Yeah i appreciate both your responses, and quick as per usual, it was bugging me for hours why it didnt work (it did, but returned the 0 because of the formatting as mentioned by both of you) i had used conditional formatting to make the s column EUR, USD, or GBP, i must of missed some of the cells out and not extended the rule when i first set it, but using the formula you have given me doesnt need any formatting in column s now

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula which works in one cell but not another?

    Many of your values in column S on the Virticle Tab are not really numbers.
    Therefor your averageif is resulting in a #Div/0 error because there are no numbers to take an average from.
    Which is then hidden by the IFERROR.

    Use ISNUMBER to see
    =ISNUMBER(S6) and fill down.

    It appears to be related to the ones that end with GBP in column CH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-15-2013, 06:07 PM
  2. Formula only works for the first cell with that value
    By Tindall80 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2013, 12:49 PM
  3. [SOLVED] formula works in cell but doesn't work in vba
    By maleeny31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 12:36 AM
  4. VB works only when value is typed into cell, not when formula updates cell value
    By dwiseman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2010, 10:56 AM
  5. [SOLVED] formula works when referring to one cell but not to another
    By Nicci in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-07-2006, 09:10 AM

Tags for this Thread

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