Find and replace with cell reference

tadrim

New Member
Joined
Dec 5, 2017
Messages
3
Hi All!

I'm trying to do a find and replace but I would like to replace the contents with a Cell value, there are around 500 cells that need this doing so i'm trying to think of a way to do it using the cell value as a variable

Basically one of the example are below:

=IF(ISBLANK(IDdata!$B$3),"","here")

I'm wanting to change the "here" with (IDdata!$B$3) so the full string to look like:

=IF(ISBLANK(IDdata!$B$3),"",(IDdata!$B$3)

Any help would be much appreciated!!

Thanks!
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,508
Office Version
2010
Platform
Windows
You have one parenthesis too many, try it like this...

=IF(ISBLANK(IDdata!$B$3),"",IDdata!$B$3)
 

tadrim

New Member
Joined
Dec 5, 2017
Messages
3
You have one parenthesis too many, try it like this...

=IF(ISBLANK(IDdata!$B$3),"",IDdata!$B$3)

Hi There!

Thanks for that, I dont suppose you would know how to do a find and replace to replace all the "heres" with the cell references that are listed earlier within the cell?

Thanks
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,508
Office Version
2010
Platform
Windows
Thanks for that, I dont suppose you would know how to do a find and replace to replace all the "heres" with the cell references that are listed earlier within the cell?
Unless I am misunderstanding what you want as a final result, I would think you should use this formula and copy it down to the end of your data...

=IF(ISBLANK(IDdata!B3),"",IDdata!B3)

The $ signs were making the cell references "absolute"... removing them makes the cell references "relative".
 

tadrim

New Member
Joined
Dec 5, 2017
Messages
3
Unless I am misunderstanding what you want as a final result, I would think you should use this formula and copy it down to the end of your data...

=IF(ISBLANK(IDdata!B3),"",IDdata!B3)

The $ signs were making the cell references "absolute"... removing them makes the cell references "relative".
Hi There!

Thanks, the problem is that i have around 500 records each are fortmatted so there are around 3 spaces between each row, there is also multiple references that also need incrementing i.e

=IF(ISBLANK(IDdata!$F$2),"","here"
=IF(ISBLANK(IDdata!$C$2),"","here"

etc hope that makes a little more sense!

Thanks!
 

Forum statistics

Threads
1,082,333
Messages
5,364,675
Members
400,810
Latest member
elbashka

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top