please check, where is the problem so that not getting result in column D
Hi All,
We have uploaded a excel file, there are two sheets, sheet1 & sheet2,
we have used a formula in sheet 1, column G (its o.k.), but when we try to add a new formula in sheet2, column d not getting the result (get 4 value from formula)
we have tried it but not find the solution, in sample file, we have used the formula in sheet2 D5, pls drop down it to D16 and you find that its not working.
Maybe formula in column D is unable to get the text "Flag" that's why not taking the 4 numbers through formula
Re: error in formula, please check and update what is wrong
Thanks oeldere,
please find attached the file.
sheet1 is data, sheet2 is required result
required process is if we will get the Flag in column in F, in column D we will take the three value from column E and start search again for Flag and when we find will take the 3 values from column E
Re: error in formula, please check and update what is wrong
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
Last edited by Pepe Le Mokko; 04-19-2020 at 06:46 AM.
Re: error in formula, please check and update what is wrong
ok, we are writing my query in detail and thank you all who have see my post and give me time
we have two points, if any one solved, my problem will be solved
Point1. What we are doing in this file – There are four entries in column D, we just want a formula who will search entry1 from next cell in column F and when find anything will show the “flag” and stop searching, when we find Flag we will put the new value in same cell column E where we have find “Flag” in column G
We have got the below solution from a thread in this forum its working fine but problem is only that we need “Flag or any other Text value” but not by doing
HTML Code:
[>0]"Flag";""
we are attaching "file 1" where we have used a formula in "column F" which is
Re: error in formula, please check and update what is wrong
thanks oeldere ji,
please find the file again
and Earlier Formula used in D3
=IF(OR($B53=3,$F53="Flag"),Get4Numbers($E$53:$E53),"") then copied down.
UDF Get3Numbers is used.
Code for UDF
HTML Code:
Function Get3Numbers(Batch As Range)
Dim T As Integer, X As Integer
Get3Numbers = ","
For T = 1 To WorksheetFunction.Min(3, Batch.Rows.Count)
If IsNumeric(Batch.Cells(Batch.Rows.Count - X, 1)) Then
If InStr(1, Get3Numbers, "," & Batch.Cells(Batch.Rows.Count - X, 1) & ",") = 0 Then
Get3Numbers = "," & Batch.Cells(Batch.Rows.Count - X, 1) & Get3Numbers
Else
T = T - 1
End If
End If
X = X + 1
Next T
If Get3Numbers <> "" Then Get3Numbers = Mid(Left(Get3Numbers, Len(Get3Numbers) - 1), 2)
End Function
Re: please check, where is the problem so that not getting result in column D
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.
Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.
(Note: this requirement is not optional. No help to be offered until the link is provided.)
AKA VISHAAL
Last edited by Pepe Le Mokko; 04-20-2020 at 02:36 AM.
Bookmarks