Values Entered into Excel
A2 =4
A3 = 2500
C2= 15
D2= 30
E2 =35
F2= 40
Values to Populate:
I want to populate cells starting in cell C5 through Cells [C5 + (value in A2)] with the value in A3
So in this example C5 through F5 with the value in A3 (2500)
I want to populate cells starting in C6 through Cells [C6 + value in A2) with the corresponding cell values in (C2 + value in A2)
so in this example C6 = C2, D6 = D2, E6 = E2, F6 = F2
You only populate as many columns across as the number in A2
Related
I'm not sure if I got the term right, but I have lists of unique values and I want to replicate each values from a lists to correspond to every value from the rest of the lists.
From the following column consisting of unique values.....
column1
column2
column3
column4
a1
b1
c1
d1
a2
b2
c2
d2
a3
I want to create a table like this.
column1
column2
column3
column4
a1
b1
c1
d1
a1
b1
c1
d2
a1
b1
c2
d1
a1
b1
c2
d2
a1
b2
c1
d1
a1
b2
c1
d2
a1
b2
c2
d1
a1
b2
c2
d2
a2
b1
c1
d1
a2
b1
c1
d2
a2
b1
c2
d1
a2
b1
c2
d2
a2
b2
c1
d1
a2
b2
c1
d2
a2
b2
c2
d1
a2
b2
c2
d2
a3
b1
c1
d1
a3
b1
c1
d2
a3
b1
c2
d1
a3
b1
c2
d2
a3
b2
c1
d1
a3
b2
c1
d2
a3
b2
c2
d1
a3
b2
c2
d2
Is there a way to do this in excel, with the use of base functions, without manually replicating each value using copy/paste?
With Office 365 we can use:
=LET(
rng,A1:D3,
arr,INDEX(rng,MID(BASE(SEQUENCE(ROWS(rng)^4,,0),ROWS(rng),4),SEQUENCE(,4),1)+1,{1,2,3,4}),
FILTER(arr,(INDEX(arr,0,1)<>0)*(INDEX(arr,0,2)<>0)*(INDEX(arr,0,3)<>0)*(INDEX(arr,0,4)<>0))
)
We can also change the formula a bit to not assume 4 columns:
=LET(
rng,A1:D3,
clm,COLUMNS(rng),
sclm,SEQUENCE(,clm),
rw,ROWS(rng),
arr,INDEX(rng,MID(BASE(SEQUENCE(rw^clm,,0),rw,clm),sclm,1)+1,sclm),
FILTER(arr,BYROW(arr,LAMBDA(a,COUNT(--a)=0))))
This will do any number of columns (within reason).
What I think I am looking for is a rolling calculation, for example:
If A2 = F2:F4 Then subtract B2 from G2 and add C2 with result in D2. This would continue until it reaches the same part again like in rows 3,4,8,and 10. Once a part is repeated rather than looking at the column G I would like it to use the latest value in D.
A3 = F2:F4 subtract B3 from G3 and add C3 with result in D3 (20-5+0-15)
A4 = F2:F4 subtract B4 from D4 and add C4 with result in D4 (15-2+0-13)
A8 = F2:F4 subtract B8 from D8 and add C8 with result in D8 (13-8+7-12)
A10 = F2:F4 subtract B10 from D10 and add C10 with result in D10 (12-2+0-10)
Use VLOOKUP to return the correct start, and SUMIFS with dynamic range to do the subtraction and addition.
=VLOOKUP([#PART],Table3,2,FALSE)-SUMIFS($B$2:B2,$A$2:A2,[#PART])+SUMIFS($C$2:C2,$A$2:A2,[#PART])
Note: to use only structured references we need to introduce the volatile OFFSET:
=VLOOKUP([#PART],Table3,2,FALSE)-
SUMIFS(OFFSET(Table2[[#Headers],[QTY]],1,,ROW()-ROW(Table2[[#Headers],[QTY]])),OFFSET(Table2[[#Headers],[PART]],1,,ROW()-ROW(Table2[[#Headers],[PART]])),[#PART])+
SUMIFS(OFFSET(Table2[[#Headers],[DELIVERED QTY]],1,,ROW()-ROW(Table2[[#Headers],[DELIVERED QTY]])),OFFSET(Table2[[#Headers],[PART]],1,,ROW()-ROW(Table2[[#Headers],[PART]])),[#PART])
I have a in A column a set of values with Name and Id
like in cell A2 it will be --- 1100768_Sakhawat_Akram, 1100768_Sakhawat_Akram
like in cell A3 it will be --- 1134260_Malik, 1134260_Malik
like in cell A4 it will be --- 1759519, Hajraf_N_Aloteibi
like in cell A5 it will be --- Hamad_Osman, 1128046
i did tried with left, right, mid, find and search function but nothing is working
as result in cell b2 will be 1100768 and in c2 will be Sakhawat
as result in cell b3 will be 1134260 and in c3 will be Malik
as result in cell b4 will be 1759519 and in c4 will be Hajraf
as result in cell b5 will be 1128046 and in c5 will be Hamad
in column B emp Id and Column C emp name
not sure as which function to use
In B2, formula copied down :
=AGGREGATE(14,6,--MID(A2,ROW($1:$250),7),1)
In C2, formula copied down :
=LEFT(SUBSTITUTE(SUBSTITUTE(A2,", ","_"),B2&"_",""),FIND("_",SUBSTITUTE(SUBSTITUTE(A2,", ","_"),B2&"_",""))-1)
how to calculate difference between a column value and column value in previous row. This should be calculated for entire column.
Column G should represent difference between rows of column E.
E.g.
G3 = E3 - E2
G4 = E4 - E3
G5 = E5 - E4
G6 = E6 - E5
and so on for entire column.
Similarly column H should represent difference between rows of column F.
E.g.
H3 = F3 - F2
H4 = F4 - F3
and so on for entire column.
Select the cell that has the formula you want to fill into adjacent cells.
Drag the fill handle across the cells that you want to fill.
My spreadsheet looks something like this:
A1 B1 C1 D1 E1 F1
10 7 2 5 11 =SUM(A1:E1)
A2 B2 C2 D2 E2 F2
X X X =18
A3 B3 C3 D3 E3 F3
X X =17
On the F column starting from F2 I want excel to sum the value from F1 and subtract values where the letter X is present. In my example the sum on cell F1 is 35.
The value on F2 should therefore be:
35(retrieved from F1)
-10(letter X is present on A2 and since A1 has the value 10 we subtract that value)
-2(same thing here, letter X is present on C2 and since C1 has the value of 2 we subtract that value)
-5(and same here aswell, D2 has letter X present and since D1 has the value of 5 we subtract that value).
So 35-10-2-5=18. The value of F2 should be 18.
And on F3 in my example the value should be 35-7-11=17.
This formula should work for every row starting from F2.
How can I achieve this?
I'm thinking maybe using the IF ISBLANK function but I'm a noob.
This is a simple SUMIFS formula
=SUMIFS($A$1:$E$1,$A2:$E2,"")
put this in F1 and copy down. You must enter the formula with Ctrl-Shift-Enter, as it's an array formula:
=SUM(IF(A1:E1="x", 0, $A$1:$E$1))