# How To Get Referenced Cells Returning Blank Cell Instead Of Zero

Apr 6, 2014

Referenced cells returning zeros: can these be made blank or string data?

But why I still get the value 0 instead of blank cell when I press ctrl+shift+enter?

My formula = IF(U15="Bank", PROPER(E15),"")
and E15 = VLOOKUP(B15,'Customer Data'!\$D\$6:\$K\$100,3,FALSE)

## Referenced Cells Returning Zeros: Can These Be Made Blank Or String Data?

Aug 30, 2007

I have a summary worksheet consisting of columns that are referenced to other sheets within the same workbook.

If the cell in the 'referring' (original) sheet is blank then the forumula returns a zero instead of a blank in my summary worksheet, which is messing up some other calculations.

Is there a way to make these cells truly blank, or possibly into string variables instead, so that they do not interfere with my calculations?

## SumIF Returning #VALUE! When Referenced Workbook Is Closed

Oct 9, 2009

My SUMIF function only works when the workbook that I'm referencing to is open. When it's closed and I open the file it shows #VALUE!. How do I fix this problem?

## Have Cell Allow (Range) Or Multiple Cells To Be Referenced

Mar 14, 2014

Trying to get a problem solved to have a % discount & 'flat' \$ discount apply to cell(s) referenced. Product A, B & C are available in 3 different materials. Objective is to allow each material's Max Discount column to apply discount(s) referenced in cell J3 & K3, but only in the order of applying the percentage discount BEFORE the 'flat' \$ discount.

Formula in cell C3 works IF the cell "Range to apply discount" I3 = "B3". Works just fine if I allow only one cell to be displayed in I3, but ideally, I'd want this to allow the said discount(s) in cell J3 & K3 to apply to any cells mentioned (for instance, for Product A Material 1, Product B Material 2).

I had tried a drop-down menu using Data Validation, which in my actual project allows me to select ONE cell at a time (out of my list of options), which is okay, but it would be extra useful to have a checkbox option to select which ones to apply the same discount to, instead of creating a massive embedded IF function to have each product in each material find whether it's cell is referenced in 20 different places (if I just copy the already functioning single cell reference tool).

The scale in which I'd like to use this in would be to apply specific discounts for one product, but a different discount for another product or material, and allow the input cell I3 to include a checkbox drop-down option (like the filter/sort), but not remove the data in the table (Range A2:G5 in this example), so I can hide any unnecessary columns and print, showing certain products & materials having a 10% discount, while others having a 20% discount, with an additional \$5 off, etc.

[URL] ........

## Returning 0 From Blank Cell

Jan 7, 2013

I'm linking one sheet in a workbook to another. The formula is simple,

If there is data in the cell, it replicates it which is what I'm after. However if there is no data in the cell it returns a "0", not what I want at all.

## Sum Returning Blank Cell

May 28, 2009

I have a current formula using SUM formulas obviously in the answer cell the answer is returning 0 due to no data inputed, how do i make the cell show empty.

eg. =SUM(A1*A3) returns answer 0 need cell to be blank.

## Formula Cell To Be Blank (Vlookup Returning #N/A)

Nov 13, 2008

If it can not locate the correct responce I want it the formula cell to be blank. How do I adjust my formula to do this?

This is the forumal I am currently using
=VLOOKUP(A26,Subs!A:F,5,0)

I have also tried this one as well
=IF(ISNA(VLOOKUP(A6,Subs!A:E,5,0))+(VLOOKUP(A6,Subs!A:E,5,0)=""),"",VLOOKUP(A6,Subs!A:E,5,0))

## Trigger Formula - Returning Blank Cell

Dec 19, 2011

I am trying to trigger a formula if a cell (B2) is populated (with anything) but if it is blank for the destination cell to remain blank.

The formula I am trying to trigger is =IF(G18=0,100,100-(100/(1+H18))).

## VBA Code To Change Font Colour Of Cell Referenced Letter Strings Within Range Of Cells

Jun 13, 2014

I am working on a spreadsheet for work, and have managed to do everything I need to so far but I need to colour specific letter strings, certain colours within a range of cells (each letter string will only appear once on each sheet)

The strings I will be looking for vary depending on data entered so I will need to cell reference them

The strings that need colouring are in cells with other strings that must stay black (They cannot be separated from other strings due to the nature of the grid)

I need some strings red, some green, and some blue.

These changes should also apply to the whole workbook not just one sheet.

Is there a way to do this with the VBA code.

## Replace Cell References In Formula With The Header Of The Cells Referenced In Said Formula

Dec 22, 2009

Here is the scenario:
A B C D
BananasApplesOrangesTotal113=A1+B1+C1

I need to reference the formula in D1 with the cells headers names.

In a perfect world, it would take
=A1+B1+C1:

and produce:
=Bananas+Apples+Oranges

## Leaving Blank Cells Blank In Dragging Formula Combining Different Formulas In One Cell?

Aug 2, 2014

I can't modify my formula to leave blank cells blank when dragging it down, Also, I've got two formulas that i need to combine. Please view the comments I've put in cells E4, F2,F3,H2 and I2 to understand clearly what am seeking. See the attached worksheet.

## IF Statement To Leave Cell Blank If Multiple Cells Are All Blank?

Mar 12, 2014

I am looking for an IF statement that would leave a balance cell blank if both the revenue and expense cells are blank, otherwise a formula would be calculated.

## How To Populate Blank Cells With Sequence Until Non Blank Cell Is Encountered

Mar 22, 2014

I presume this is fairly simple to do, since it's certainly easy enough to do manually by filling in a couple of rows and dragging them down, but I need it to be performed in a macro that I can run before other macros run.

What I need specifically is for the macro to go to G1 and insert the number .01... Then go to G2 and insert .02... Then G3 and insert .03... And repeat this until it finds the first non-blank cell ( row number this occurs at varies), at which point it ends and does nothing to that populated cell or any other cell in the column thereafter (including other blanks farther down).

This all needs to be done in Arial, 10pt, white.

## List - Filling In Each Blank Cells With Value Contained In First Non-blank Cell Above It

Feb 27, 2013

I have a list that looks something like this:

Column B

Row 4 Item 1
Row 5 Item 2
Row 6
Row 7
Row 8 Item 3
Row 9
Row 10 Item 4
Row 11
Row 12
Row 13
Row 14 Item 5

The range of cells in column B containing the items has a name "ColStreams"

I need to go through the list, filling in each blank cells with the value contained in the first non-blank cell above it - so, in this case, rows 6 and 7 would contain "Item 2", row 9 would contain "Item 3", rows 11-13 would contain "Item 4" and so on.

## Replace #VALUE! Error For Blank Cells With Blank Cell

Nov 17, 2008

The formula below calculates appropriately, however, if any of the cells (E12,E14, E21, E22, E28, E29) are blank, it returns a #VALUE! error. I would like the cell to remain blank. How can I do this? The formula is listed below.

=(SUM(E34-E6)-(SUM((E12)+E14)-(SUM((E21)+E22)-(SUM(E28)+E29))))

## Referenced Value In A Cells In 5 Rows

Mar 6, 2006

I have a vlaue referenced from a sheet 2, and I need to put this value (Same value) in a cell, say O3,and then O4, O5... six times counting from O3. i.e O3=150, O4=150, O5=150....

150 is coming fr4om "Worksheets("Interest Calculations").Range("F4")"

For x = 1 To 6
Range("O3").Value = Worksheets("Interest Calculations").Range("F4")
Next x

## Sorting Cells With Referenced Names In Name Box

Jun 8, 2009

I'm trying to do is sort cells which are referenced by names in the name box when a button is clicked. All the coding is in VBA.

If a cell is sorted by a macro, I would like the referenced name to move with it on the spreadsheet.

For example if the referenced name box for C5 is Bob and Andrew is the referenced name box in C6, when a button is clicked I would like the Andrew reference to move to C5 and Bob to move to C6. This is sorting in alphabetical order. However, I would like the referenced names to stay the same. Referenced Name refers to the cell name box.

Is there a way to do this in VBA?

## SUM Formula Not Summing All Referenced Cells

Sep 5, 2006

My problem is that when i used the forumla = SUM(Q11:AW11) to add up the range of cells it dosnt do it. It only added up 2 of the numbers in the range of cells. And missed out everything else. This forumla is being used to add up all the volunteer hours for volunteers for each month and for all the other months the formula worked fine but now its just being a pain.

## Replacing Referenced Cells With Static Text?

Feb 26, 2013

I'm making a vba macro that takes a workbook and splits and saves it as individual sheets. In this process I need to find all the referenced cells (ie =E5) and change them to their text or numeric value. A few things I've found on the form and tired with no success:

Selection is a column selected from the top to the last used cell (I know there is only 4 columns that have references)

VB:
Selection.Copy
Selection.PasteSpecial Paste = xlPasteValues

Also tried:

VB:
ActiveSheet.UsedRange = ActiveSheet.UsedRange.Value

I feel like one of these should be working. But even after the paste the values are still references.

Edit: An afterthought, if I were to select the whole sheet and do a copy/special paste would it replace all formula cells with their calculated value?

## How To Hide Displayed 0 In Two Circular Referenced Cells

Feb 3, 2014

Very simply, if A1=B1 and B1=A1 - how do I trick excel into displaying a blank cell for the purpose of printing pages?

Further information:

I am working on an evidence log, it's just a spreadsheet with columns for collection info; all of the information put into the log on one sheet, is referenced on a second sheet where the info is arranged in a printable grid to make sample tags.

For some ungodly reason, I have been instructed to make all of the references circular, so that anyone with a particularly masochistic streak can log their information on the tag to populate the log and vice verse

This results in my log and tags each having 0 values displayed in all of the cells, which I didn't think was a problem, until it was pointed out to me that people may want to print out sheets and use them to take notes in field, making blanking the cells my ultimate goal.

## How Can A VBA Macro Find Which Cells Are Being Referenced In A Formula

Jan 15, 2008

I have a spreadsheet with a number of different formulae on it. I have a macro which I want to extract which cells are referenced in the formula in the active cell and then branch based on the which cell is referenced.

Is there a way to find the referenced cells without parsing the formula string?

## Returning 0 Instead Of Blank

Oct 16, 2012

Below formula matches two criteria

=SUMPRODUCT(('[Value.xlsx]test!\$B\$5:\$B\$50=\$B5)*('[Value.xlsx]test'!\$C\$5:\$C\$50=\$C5)*('[Value,xlsx]test'!D\$5:D\$50)).

What it does is:

Matching B5 value in range B5:B10 of tab "test" in worksheet "Value"

Matching C5 value in range C5:C10 of tab "test" in worksheet "Value"

AND capturing the matching value in range D5:D50.

The problem is that i am getting 0 if the matching value is a blank or 0.

I want the formula to return nothing (i.e. blank) when the matching value is blank and 0 only when the matching value is actually 0.

## Returning String From One Cell Based Upon Multiple Cells

May 22, 2013

I need to return the specific text of a cell based upon the text in multiple cells.

Worksheet as follows:

Asphalt Sub:
BLDG1-Backwash 1
*BLDG1*
*Sub*
BLDG1-Backwash 1 OverEx
*BLDG2*
*Sub*

[Code].....

I have three columns thus far. I need to add another column and search all items in Column A using the criteria in Columns B and C. For instance I need to search for BLDG1-Backwash Sub: and place it into column D using the criteria in Columns B and C.

If possible, I would also like to remove both the words, BLDG1 and Sub from the result so then it only shows "Backwash".

My spreadsheet is much larger than this and I have muliple buildings I am dealing with, sometimes 30-40.

## Macro To Conditionally Format Referenced Cells In Another Sheet

Apr 27, 2013

A
B
C
D

[Code]....

There are four sheets (labeled A,B,C)

Depending on the contents in cells in Columns A and B (which have 1000+ rows), I want to change the background color of a referenced cell elsewhere:

For each row (lets say from 2-1000)

1. If "A" cell is blank -- referenced cell (address in columns C & D) should be colorless -- (as in Row 2 --- cell Z5 in Sheet "C" should be colorless)

2. If "A" cell has text AND "B" cell is blank, reference cell should be colored BLUE -- (as in Row 3 --- Cell F3 in Sheet "C" should be BLUE)

3. If both "A" and "B" cells have text, reference cell should be colored YELLOW -- (as in Row 4 --- Cell C5 in Sheet "B" should be YELLOW)

While I could do this with a conditional format in every referenced cell, it would take too long to enter them.

## Returning Blank Where Criteria Not Met?

Oct 22, 2011

I am using the following formula to return an "F" in the cell. If there is no "F" it just returns "#N/A". Is it possible to have the cell blank instead of the #N/A? If so how do I do it?

=INDEX(E1:E99,MATCH(1,(A1:A99=Selections!J5)*(E1:E99="F"),0))

and then ctrl + shift + enter

## Nested IF / AND Returning 0 Instead Of Specified Blank?

Apr 14, 2014

My formula is returning a 0 when true instead of being blank as specified. If I designate a value other than "blank" (i.e. "A Word") it still returns a 0. What am I doing wrong?

=IF(AND(CBAuditType="PHYSICAL",TxtInsuredName=""),"",TxtInsuredName)

## Returning Last Non-blank Value In Horizontal Range?

Apr 25, 2014

I want to be able to return the value of the last non-blank cell in the horizontal range L3:BF3. This would need to account for any blank cells that might occur within the range. Those 'blank' cells would contain formulae and the non-blank cells would contain GCSE grades from A* down to U or National Curriculum levels in the format nx (e.g. 3a). I would need to be able to copy the formula down to other rows. The reason I'm not keen on an array formula is because they can slow things down, as I understand it.

I'm afraid I don't have a sample worksheet as this is all, for now at least, an emerging plan in my head. I should probably add that the grades will not necessarily increase in value in the range, so we're not looking for the largest.

## Automatically Change To Proper Case Once The User Leaves Any Of The Referenced Cells

Nov 6, 2008

In my worksheet there are ranges A3:C37, E3:E37, J3:K37 and P3:P37 that all contain text that I would like to automatically change to proper case once the user leaves any of the referenced cells.

I have tried various codes form this forum and searched for hours on the net for a solution to do this but no matter what I do/try nothing works (for long)

Another forum user did help me out with some code but there was an issue with column C, L & O (which are set as drop down lists) and when the code was put into the workbook these columns stopped working and froze the app.

## Excel Web Query Is Returning Blank Data?

Jun 23, 2013

I am trying to get data in excel sheet using web query from the following web link:

But I the data returned is a 'hypen' (i.e. a dash symbol). I am getting the row/column headers but not the figures or the numbers under them.

## Combining TODAY Formula And Returning Blank Value?

Apr 11, 2014

I'm currently using the following formula to return either a "PAST DUE" or "DUE" value in a particular cell based on the date entered in the cell in the previous column.

=IF(AND(TODAY()>=BG43+5,TODAY()=BG43+10,"PAST DUE",""))

However, if the reference cell is blank the formula automatically triggers to put in "PAST DUE" as the value. I would like to modify this formula so if the reference cell is blank that this cell will also remain blank. I've tried a few different options, but I'm getting an "too many arguments" error on what I've tried.