I have one large row of data, containing multiple observations. The data consits of:
PO number
Amount
Location
See attached image:
Now what I want is that PO Number 8382 (A2) is looked up in A8:L8 and puts in B2 the amount of each PO number and puts in C2 the location. So what it needs to do, is lookup a value in the row and extract the value on the right of it. I tried H.lookup but that did not work.
Can anyone help me? I used index and match, but I can't make it work. I believe it's probably a simple question but I can't figure it out.
Thank you in advance!
Your thinking is correct.
In cell B2:
=INDEX($A$8:$L$8,1,MATCH($A2,$A$8:$L$8,0)+1)
In cell C2:
=INDEX($A$8:$L$8,1,MATCH($A2,$A$8:$L$8,0)+2)
Copy down.
Try this (It find first occurence in ROW 8)
Cell B2 formula =OFFSET($A$1;1;MATCH($A2;8:8;0);1;1)
Cell C2 formula =OFFSET($A$1;1;MATCH($A2;8:8;0)+1;1;1)
You could use:
=IFERROR(INDIRECT(ADDRESS(8,MATCH(A6,$A$8:$H$8,0)+1)),"PO not found")
using IFERROR you avoid receiving errors if any of the PO not found.
Related
I am trying to find a number in a row of numbers that is between 0 and 100. But for my output, I either want a "--" if there is not a number between 0 and 100, or I want the actual numbers that fit with that range.
Here is an example of what I am trying to do: Example
Does anyone know how to solve this issue? I appreciate any help.
Use the logic you have already stated, just work step by step.
I'm assuming you want commas between the numbers, but you can adapt as necessary.
In a row under your input data (I'll assume it starts as B2), put in B3:
=if(and(B2>$B$1),(B2<$C$1),B2,"") and copy across.
Then in the next row in C4: =IF(D3="",C4,C4&D3&",") and copy across.
You either need to amend the formula in the first column, or (my preference) insert a blank column.
You then need to strip the last comma (E.g. =left(P4,len(P4)-1)
And it would be best to name the ranges B1 and C1 rather than just using $formulae.
I'm looking for a solution to automatically distribute the value of a cell (C3 till C10) based on the number of months (B7 till B10).
Anyone who can help me out with this formula?
First, you can make a helper row as showed in image attached starting with number 1.
Then apply below formula to cell(E5) and drag across the range.
Formula: "=IF($B5>=E$3,$C5/$B5,0)"
Related Image
Thanks
Abhinav
Type the following formula into cell E7:
= IF(COLUMN()-COLUMN($E7)+1<=$B7,$C7/$B7,0)
Then drag this cell over and then down as far as you need it.
For second part, to calculate amount of months you can add formula in cell("C4") as:
=MONTH(DATEVALUE(C3&"1"))-MONTH(C2)+1
i am looking for a formula or something like that to find the most nearest or almost identical values in a range of google spreadsheet.
for example look at the following values of different cells.
3,5,13,18,19,20,21,26,28,52,62,75
I want a result like this group of value (18,19,20,21)
because in that range, only these values has the least difference to each of them.
if it is possible then please help..
Thanks in advance!
Place the values in column A and sort them. Then in B1 enter:
=IF(A2-A1<=1,"Good","")
and in B2 enter:
=IF(OR(A3-A2<=1,A2-A1<=1),"Good","")
and copy down.
Cell A1: 0553400710
Cell A2: John
Cell B1: ['0553400710', '0553439406']
Note:
Cell B1 has a fixed format of ['number','number,'number',...... ]
A1 and A2 are user input values
I want to match 0553400710 in Cell A1 with ['0553400710', '0553439406'] in Cell B1.
If it matches, I want to return A2: John.
Is it possible?
I have asked the question before here. it has all the pictures attached as well. Unfortunately no one except one could solve it.
The one who gave me a nearest answer was Jeeped whose answer is
=IFERROR(INDEX(A:A, MATCH("*"&A1&"*",B:B, 0)+1), "")
The problem with this is that it takes the column array instead of rows array. I need it to be in rows as its the best practice for a database. Is there anyone who can improve this solution?
I have also tried vlookup as below but it failed
Here is the data for reference
and here is the input i am trying to match
Is it possible?
=IF(ISNUMBER(SEARCH(A1,B1)),A2,"number not found")
This will work for your example at the top. If A1 looks like ['0553400710'] you could try using SUBSTITUTE formula to remove punctuation.
Not sure what you were trying to do in the bottom bit, sorry.
I have a simple sheet that adds totals. I need to be able to put the word LD in a cell and have all numbers in that column be read as zero, otherwise they are added as normal.
Example:
B6:B22, C6:C22 have the numbers 10 in them. The totals are added row wise, so the totals for each are 20.
If I put "LD" in B23, I need another formula to read 10 instead of 20.
I was trying to use an IF formula but cannot seem to get anything working.
I apologize if this is unclear, I will do my best to clarify if I need to.
Thank you!
i suggest you get the totals (20) in D6:D22.
So try this formula in D6 and copy it down to D22
=IF(B$23="LD";10;SUM(B6:C6))
Does this help?
If you need the sum of the actual values in the cells, try this (put it in E6 and copy down to E22).
=SUM(IF(EXACT($B$23,"LD"),0,B6),C6)