Display Row number of cells in a column that are not blank - excel-formula

I am using Office 365.
I have a sheet with a column of relevant values. In a separate sheet of the same workbook, I want to display EVERY row number of cells in a column that are not blank.
The FIRST formula DID work, but it is NOT working anymore. This is where I need help. Is something off here? I don't think I changed anything, but it seemed to just stop working last week, after working well for a couple months.
=IFERROR(SMALL(INDEX(('Patient Tracker'!$A$4:$A$848="")*10^10+ROW('Patient Tracker'!$A$4:$A$848),0),ROW('Patient Tracker'!A1)),"")
The " *10^10+ROW " is to later be able to copy down this formula and draw from this new column of indexed data by using this formula:
=IF(A2<500,INDEX('Patient Tracker'!$A$4:$D$848,A2-3,1),"")
So, if <500, it returns a blank.
THIS formula successfully returns the value of cells that are not blank from the same sheet. This is good, but I want the ROW number of the cell where this data comes from, AND I don't want the blank cells to be copied over to the new sheet, which this formula does.
=IFERROR(INDEX('Patient Tracker'!$A$4:$A$848, SMALL(IF(ISBLANK('Patient Tracker'!$A$4:$A$848), "", ROW('Patient Tracker'!$A$4:$A$848)-MIN(ROW('Patient Tracker'!$A$4:$A$848))+1), ROW(A1))),"")
Please be pateint and specific with me. I barely understand the formulas I am using.

Related

How can I automatically formulate a column while adding values ​to another? EXCEL

I have a column formulated in excel that returns all the business days from date X to today and it is automatically filled in, and there is a column to its right in which a COUNTIF formula is applied based on this first column , but the cells are not filled automatically as it happened before, but you have to drag down to complete the formulas, and I want this to be automatic too.
The first column is fulfilled with the following formula: =WORKDAY(MIN(Data\[Fecha_Completa\]-1);SEQUENCE(NETWORKDAYS(MIN(Data\[Fecha_Completa\]-1);MAX(Data\[Fecha_Completa\]-1)))), and the second one (which doesn´t fulfill automatically): =IF(COUNTIFS(Data\[Fecha_Completa\];A2)=0;A2;""); in which it is explained that, if the date of the first column is found in the database (Data[fechacompleta]), I want excel to return me nothing, but if it isn´t found, I want excel to return me the same date. Then the problem is that the second column isn´t fulfilled automatically at the same time as the first does.
As you may appreciate in the first image, the formula exists for that value, but once more dates are included in the database (as you may see in the second picture when we come to February) formula stop working and obliges me to drag it down.
I have tried to applicate the formula to the whole column but that isn´t what we are looking for as the file would be heavier.
To base a formula on a dynamically-spilled array, use a # in your range references. Therefore using A2# instead of A2 will automatically spill the formula to the same size as the formula in A2.
=IF(COUNTIFS(Data\[Fecha_Completa\];A2#)=0;A2#;"")

Leave referencing cell blank if referenced cell is blank but has a formula

I've searched through so many forums on here to find exactly what I'm looking for but haven't found what I needed.
Basically I have a workbook with cells that reference another workbook. Column A cells fill the date from the other workbook as does column B. I'd like for cells in column C to have an "X" if the cell in column A has actual data in it and left blank if it does not. The problem I'm running into is that Excel is putting an "X" in all of the cells in column C because it's reading that Cell A has a formula in it to pull the data from the other workbook.
Current formula: =IF(OR(ISBLANK(A5>"")),"","X")
I've tried isblank, not, etc, nothing seems to be working. Below is an example of what it's doing:
The problem
What I want
The OR() function typically works with more than one condition. You want to see if either A or B is blank, but you only test for A.
IsBlank() returns true if a cell is blank. You only need to pass it a cell, nothing else. You are using a cell compared to a blank string as the argument, which is not correct syntax.
Try this:
=IF(OR(A5="",B5=""),"","X")
On the other hand, pre-filling a column with a formula is not good data architecture. You can turn the data into an Excel Table object with Insert > Table and enter the formula for the existing rows of the table. Then the formula will automatically be applied to new rows that are added or inserted.

Inserting column from sheet2 into sheet1 in Excel without zeroes on unavailable data?

I am trying to get a column from one sheet and putting it in another. I am pulling the "names" column from this sheet: this is sheet2
and putting it into another sheet (sheet1) by using =sheet2!A3 and =sheet2!A4 and then dragging down to the bottom of the excel page to fill the formulas. The problem that I am having, is that for data that is not in sheet2 that it is still trying to get, I am getting zeroes like this, all the way to the bottom of the page: This is sheet 1 after I pull the column from sheet2
How do I prevent these zeroes from appearing? I would assume there is a way to "copy data in column until the bottom of the data". Basically, how do I make it so that as "sheet2" grows in size, "sheet1" will also, but without the zeroes?
(The cell format is in "general" if that helps, and I am using Excel 2011 for Mac)
=IF(ISBLANK(A1)=TRUE,"",A1)
Formula is... if that if the cell is blank, show an empty cell instead of 0. Hope this helps!

Text in IF formula

I am trying to develop a spreadsheet pulling data and text from another sheet within the workbook while leaving the cell blank if not populated in the aforementioned sheet.
I am trying to develop a materials summary sheet pulling from a stock transfer sheet.
In the initial column, I have inserted the formula =IF('Stock Issue'!D13,'Stock Issue'!D13," "). This works fine in that if the cell in Stock Issue is populated, the quantity inserted is pulled into the new spreadsheet and if not, it is left blank.
I tried duplicating this formula in the next column for Quantity and the result I get is #VALUE!
Since this cell is populated with text (i.e., EA, LF, SF, etc.), is that the issue? How can I populate with text?
Thanks
You need to test whether the cell is blank:
=IF(ISBLANK('Stock Issue'!D13),"",'Stock Issue'!D13)

Excel 2007 update reference when copying a row to another spreadsheet

I have two pre-filled spreadsheets ('main data' and 'variable prices') and VBA code that formats and copies one row from 'main data' to a 'results' sheet using some values from 'variable prices'.
On the first sheet a certain value is calculated using a cell in, say, BR column, when row is copied to the 'results' sheet that value is moved to another column, BY.
Something terrible happened and now the formula that calculates total on the 'results' is not updated and takes irrelevant value from BR column.
How to manually (I am guessing that when I put this together half a year ago the reference was updated automatically, but got destroyed when my boss edited/copied values or whole rows of data from other files, deleting the files after - I get "broken link" message now) set it back?
I hope this is legible. This is my only VBA experience, its operation is still somewhat of a mystery..
Thank you!
When you copy data as a formula and you want to keep referencing parts to the originating column/cell, you can "lock" the references. Example in a cell:
=A1, when copied two columns to the right would result in =C1 or
=A1, when copied tow rows down would result in =A3.
You can fix/anchor either the column, or the row or both in a formula by putting a $ in from of the reference. =$A1 remains =$A1 even when copied two columns to the right. =A$1, remains =A$1, even when copied two rows down. =$A$1 will always stay =$A$1, wherever you copy this to.
Alternatively, if you only want the value (not the formula), use paste.value or
cells(ref.target).value = cells(ref.org).value.
Oh forgot to tell you, when you highlight a cell address (A1) and you press F4, you can toggle between 4 stages from $A$1, $A1, A$1, A1

Resources