IF A1 true than value from cell B1

ChristianSigge

New Member
Joined
May 10, 2018
Messages
2
Hello,
I have a problem, maybe it's simple but I'm not able to solve this,
thats how my sheet looks like:

NameJobnumber
SandroA801336.00
AlexA801233.01
SandroA802444.00

<tbody>
</tbody>



In Cell "J" I'm using this Formula to read out a specific value:
=IF(ROW(A2)-1<
COUNTIF(A:A;"Sandro");"Sandro";"")
<countif(a:a;"sandro");"sandro";"")[ quote]<countif(a:a;"sandro");"sandro";"")[="" code]<countif(a:a;"sandro");"sandro";"")<="" strong=""><countif(a:a;"sandro");"sandro";"")< strong="">
In cell "K" I want to read out the Value next to the Name, for example in this case I'm searching for the Name "Sandro" and I want to read out the job Number next to his name.
I tried it with offset,

=IF(ROW(A2)-1<
COUNTIF(A:A;"Sandro");OFFSET(A:A;1;1;1;1);"")

<countif(a:a;"sandro");offset(a:a;1;1;1;1);"")< strong=""><countif(a:a;"sandro");offset(a:a;1;1;1;1);"")< strong="">, it's not working correctly it read out the value of all listet Job numbers and not just the numbers next to the name "Sandro".


Thank you very much for your help.</countif(a:a;"sandro");offset(a:a;1;1;1;1);"")<></countif(a:a;"sandro");offset(a:a;1;1;1;1);"")<></countif(a:a;"sandro");"sandro";"")<></countif(a:a;"sandro");"sandro";"")[>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Why not use a simple VLOOKUP in cell K =VLOOKUP("Sandro",$A$2:$A$100,2,0) or an INDEX/MATCH combination
 
Upvote 0
Why not use a simple VLOOKUP in cell K =VLOOKUP("Sandro",$A$2:$A$100,2,0) or an INDEX/MATCH combination

Hello, Thank you for your reply,
the Formula you posted doesn't work, Excel mention the following Error "Invalid cell reference error".
but if I change the "col_index_num" to "1" it works by showing the name "Sandro".

But I don't think that formular is the right one for my problem, my Excel sheet contains several cells with the name "Sandro"
and what my Formular does is to list all entries with "Sandro" :

K2 - value with sandro 1
K3 - value with sandro 2
K4 - value with sandro 3

and so on.
 
Upvote 0

Forum statistics

Threads
1,215,565
Messages
6,125,583
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top