IF statement to display cell information - excel-formula

I am trying to write a formula for this spreadsheet,
if cell a2 is greater than 0 then display the information from a new sheet and the cell f9

Welcome to SO,
This may help you;
=IF(A2>0,Sheet2!F9,"")
Or
=IF(A2>0,Sheet2!$F$9,"")
Sheet2 is the name of the next sheet from where you will pull information.
Thanks !

Related

Excel drag copy and paste but change sheet name

I have a Excel doc with a master log sheet that I would like to link to cells in other detailed sheets. The main sheet is called RFI Log and the other sheets are RFI001, RFI002, RFI003, etc.. Ideally on the RFI Log sheet in the Status column the formula would be =RFI_001!$A$18 and that would show the Status of RFI001. It works great. But I have over 50 RFI Sheets with a dozen fields that I want on RFI Log. Without having to type in the formula in each cell on RFI Log is there a faster way to replicate the formulas? I have tried all my cell locking tips ($) but when I drag a corner of a cell to pull down the formula the sheet name doesn't change incrementally. For example if I drag the cell =RFI_001!$A$18 the next cell turns into =RFI_001!$A$19 and not =RFI_002!$A$18.
Something like =INDIRECT"RFI_"&TEXT(SEQUENCE(18),"000")&"!A"&18-SEQUENCE(18))
INDIRECT should help you here. Usage: =INDIRECT(cellWithSheetName&"!A18")
You don't need the $ to fix column or row when dragging the formula. Just create a range of your sheet names and let the sheet name reference be adjusted when you drag the formula.

Copy column cells value from 1 sheet to another sheet rows

I am not sure whether can I ask Excel related questions in stackoverflow. This is my first time using excel and I have no idea how to start or what is the search keyword to my answers. My explanation sucks so I will use screenshots instead below :
I have a few products like this in the Product Sheet
I want those products to be display like this in Customer Sheet
Is it possible to do it? I am currently using google sheet to do this. Thanks in advance guys! =)
You can use Ctrl + Alt + V To paste which will open a dialog , Click on the transpose checkbox ( At the bottom right of dialog ) and click On Ok.
Paste Special Dialog
Use a formula
You can use it as a Formula. For example you have values from A1 To A10 in Sheet1. You Can apply this formula in a cell in Sheet2 =TRANSPOSE(Sheet1!A1:A10)
List In Sheet1
As columns in Sheet2 using formula in B2 Cell As =TRANSPOSE(Sheet1!A1:A10)

Copy and paste formula in excel

Good morning everyone,
I have sheet1 where I past information from SAP.
In a second tab and for each line in sheet1 I have to copy paste the info on 6 lines
What I did is
cell A1 of sheet 2 is "=sheet1!A1"
cell A2 to A6 "=A1", ="A2" etc..
Problem is, I have about 500 lines in sheet one, and when I try to copy past the formula, in the cell A7, the "=sheet!A1" becomes "=sheet!A6" where I need it to be "=sheet!A2"
Could someone help me please ?
Thanks a lot for the support
Pierre
Write following formula in Sheet2 cell A1:
=INDEX(Sheet1!A:A,CEILING(ROWS($A$1:A1)/6,1))
Copy down as much as you need.
Edit:
Tweaked formula per OP's latest info which should go into cell F5 or whatever cell:
=INDEX(Sheet1!B:B,CEILING(ROWS($A$1:A1)/6,1)+2)
Notice
+2
which is added so as to start directly from Row 3 instead of Row 1!

Need a cell to recognize sheet/tab name in another cell in the same sheet, and pull a value from that sheet

My first post on here. I am looking for help on a problem I have encountered at work. I need a cell to recognize the name of a tab/worksheet from another cell, and pull up a value from that worksheet. FOr example, the sheet's name is 'Destination', I want something that goes to that work sheet and pull up the value in cell C1. The value will be in the same cell in every tab, so in this example, it will always be in C1. Ideally, I'd like a formula as I have never used VBA but if there is no way around it, I'd appreciate a simple VBA code as well.
I would like to copy this formula to multiple cells in the same column, where the name of the tab changes but the cell location does not.
Thanks for your help.
If you want to use a formula, use the INDIRECT formula. As an example, cell A1 contains the word destination. The below formula will pull information from the Destination Worksheet, Cell C1.
=INDIRECT(A1&"!C1")
Let me know if that helps.

Comparing excel rows across multiple tables and copying

I've worked on this for about a week and I'm stuck. I didn't see any forms with my problem on here, so hopefully y'all can help.
I'm trying to compare data from sheet2 to sheet1 and if the value in column B is the same, paste the data from sheet2 in the next blank cell in sheet1
I've included a spreadsheet that hopefully illustrates my point better.
=if(sheet2!B(some_number)=sheet1!B(some_number),fill_in_answer_you_want,0)
You would have to input this statement into the cell that you want. For example, in Cell C2 you would write:
=if(sheet2!$B2 = $B2,sheet2!$B2,0)
As for a way to fill in the next blank cell, you would have to write a vba script to find the cell you would like to place it in and place the above formula into the cell.

Resources