Text in IF formula - excel

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)

Related

Copy excel Picture to different tab using IF THEN formula

I've created an order flow in excel with conditional formatting. The conditional formatting shows the manager the timeline of an order based off of the start date and end date. I've inserted pictures on a separate sheet (sheet2) in the excel file that I would like to overlay on the timeline start date to give the viewer a visual of what product was ordered and how many days (start - end) it will take to arrive.
Is there a way to use a formula within the cells on the order flow to pull back the pictures from Sheet2? The formula I currently have references the picture but the picture pulls back "0" into the cell on Sheet1.
I also created VBA to copy the picture from sheet2 to sheet1 but I'm having a really tough time getting it to paste to the correct cell. That route might be a dead end.
Current formula:
=IF(AND(F6=I6,H6=Sheet2!$B$11,Picture1,"NA"))
Current table without pictures:
What I would like to accomplish with formulas or macros:
Here's what sheet2 looks like for reference:

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

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.

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!

Vlookup formula in excel

I was hoping someone could offer me a little help please on a formula. In one of my cells I use a vlookup to search for the colour in B12 and match it to the colour on another worksheet called cars.
Now this works perfectly fine, but after running the formula I have to select the last row of data and press control & d, or drag down the cell up until the last cell, my question is that is it possible to add this forumla into the cell and have it automatically run all the way down to the last row of data? my forumula is
=VLOOKUP(B12,coloursc:carsc,2)
You can use an Excel table for your data entry. Formulas and formatting will automatically be applied to any new row in the table. You no longer need to manually copy down or pre-fill empty areas of the spreadsheet with formulas.
Learn more about tables in this Microsoft article and this tutorial on Contextures.com

Why is cell losing formula after initial calculation? - Excel 2007

I have an excel sheet that is being fed data from a userform. Certain cells auto update based upon when certain cells on the Home page or Setup page change.
On the setup page, cell H1 references cell Home!B15 which is control sourced to my userform. It takes in a sales rep name.
Cell H2 has the following formula
=IF(ISERROR(VLOOKUP(Home!B15,D2:E243, 2, FALSE)), "", VLOOKUP(Home!B15,D2:E243, 2, FALSE))
This works fine!
In cell Home!B16, I have the following formula
=Setup!H2
For whatever reason, it will populate the correct value one time. Once I select a different sales rep in my userform, it loses the formula, and keeps the first value.
My question again: Why is my cell losing it's formula after taking on its first value?
I have encountered the same issue with a userform in VBA/EXCEL 2010. It seems when you change a value in the form that affects the value in a calculated cell, the formula in that cell gets replaced with a literal value. Pretty frustrating.
The best I could do for a workaround it to store the formulas that get lost in another location (in a dictionary object, for example) and then when I close the form I use VBA to overwrite the [new] literal value(s) with the formula(s) that were in those cells to begin with.

Resources