Display value based on condition - Excel - excel

I am trying to update one of the columns in the screenshot shown below based on a condition referring to counter column (Column F).
For example, if counter = 0, then column G should be blank, else it should take value from appointment column from the above cell.
Referring to the image below,
Cell G2 will be blank since counter = 0
Cell G3 should display value from B2 and H3 shall display C3
Cell G7 shall display should display value from cell B6 as they are all link to the same load (cell A6 has the load number)
Similarly cells G8 - G10 should also display value from B6.
Could anyone help me with the excel formula for the same. Thanks in advance.

Add "=IF($F2=0,"",IF($F2=1,B1,G1))" in G2 and Drag Down and Left.

Paste this formula in cell G2 and drag this down and across column G and H.
=IF($F2=0,"",B1)

Related

Excel: if cell B2 contains a certain char then value of cell D2=E2 if not then D2, then I want to increment to E3 if Im at BX?

I have the following table, what I am trying to do is to automatically generate the column D (highlighted in yellow below).
If the previous cell in column B (starting B2) has a bracket "(" then I want it to be equal
=IF(ISNUMBER(SEARCH("(";B1));E2;D1) [this equation is in D2]
the trick is as seen in the example below B3 till B17 have no "(" so its equal the previous value which is the above D, but in B18 it sets to E18, however I want to be E3 and so on till the end. Any help?
Maybe you can just count how many cells containing brackets there have been in column B before the current row, and use that to pick up the next item in column E?
=INDEX(E:E,COUNTIF(B1:B$1,"*(*")+1)

Formula to find the last populated cell in a column and add to it?

If column A is marked with an X, the adjacent cell in column B will find the last populated cell in column B and simply +1 to that.
For example: If A1 is marked and B1 is HF2056, and it skips a row so that A3 is marked with an X, B3 would need to auto fill to be HF2057.Image with fake numbers for example
So how do I formulate it so that if a cell in column A is marked with an X, the adjacent cell in column B will find the last filled cell in B with data and fill in the new number?
I feel like this may be an ISBLANK formula but I can't figure it out.
Thank you in advance!
Assume : A1 is X and B1 is HF2056, A2 is blank, A3 is X
Then, in B2, formula copied down :
=IF(A2="","",LEFT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),2)&RIGHT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),4)+1)
And, formula result:
B2 : (blank)
B3 : HF2057
Remark :
The above formula result will give max number in HF10000.
If you want the number keep to increase by 1, the B2 formula will be changed to :
=IF(A2="","",LEFT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),2)&RIGHT(LOOKUP(1,0/(A$1:A1="X"),B$1:B1),LEN(LOOKUP(1,0/(A$1:A1="X"),B$1:B1))-2)+1)

Insert a value to a cell in excel using formula in another cell

I need to insert a value to a cell in excel using formula in another cell.
Say
A1 = "Test"
B1 = formula to insert A1 to C1
C1 = A1
Can I write a formula in B1 to insert value in C1?
I don't need any formulas in C1.
If Yes, What should be the formula?
If there it is next to the cell AND has no value in B2, it is possible, otherwise it is not.
Use Split()
Split(CONCATENATE("Text for B1#Sperator$$",A1),"#Sperator$$",FALSE)
It really depends.
EDIT
Out dated. Only works in google sheets.
Without using VBA or formulas in column C you can't achieve this.
A simple solution using formulas:
In cell C1, paste the following formula and drag it down:
=IF(B1=1;A1;"")
So if the content of cell B1 is equal to 1, your cell at column C will display the respective value of the same row at column A.

Excel : How Can I Get First Cell Content

How Can I Get First Cell Content ?
here is my sheet
A
1 Color
2 Red
3 Blue
4 Yellow
note : Color has filter
i want to make the cell B1 = first cell of column A - I try type in B1 =A2
but when i make filter (example i select blue) the cell B2 show nothing (i want B1 to show the filtered data on first column )
A Non-Volatile AND Non-Array entered option is to use a helper column:
In B2 Enter =SUBTOTAL(3,A2) and drag it down. This will mark every row with a 0 or a 1 depending on if it is visible or not.
Then in B1 you can simply enter:
=INDEX(A2:A4,MATCH(1,B2:B4,0))
The above will search the B column for the first 1 (stands for visible), and return the value of the cell in column A of that row.
In B1 enter the array formula:
=INDEX(A2:A100,MATCH(1,SUBTOTAL(3,OFFSET(A2:A100,ROW(A2:A100)-ROW($A$2),,1)),0))
Array formula must be entered with CNTRL-SHFT-ENTER rather than just the ENTER key

Setting a cell to a value of another cell IF another cell was value X

Is there a formula in excel to allow you to obtain the value of another cell WHEN a second cell was value X?
For example, something like:
=GETWHEN(A1,3,B2)
Which would return B2's cell value when A1 is value 3.
So if let's say you had a cell B2=4*B1. And B1 you set to 3, so B2 would show 12. But I want to make a row of entries to plot what B2 will be when A1 is 1, 2, 3, 4, 5 etc...
What could I put under A1 Values?
EDIT: I'm not looking for a if like in the conditional sense. I'm looking for the value WHEN (edited now)
You're thinking about data tables.
Provided you have your values in E2:E6, and your formula in B2:
Enter =B2 in cell F1.
Select E1:F6.
Go Data - Data table and put B1 into the Row input cell box (B1 being the cell on which B2 depends).

Resources