I need excel consultation

x_ampl1

Board Regular
Joined
Mar 7, 2012
Messages
126
Dear All

Thanks for this great site, it helped me a lot.
I have one problem I need your help or consultation.


I have two sheets with two tables
1st sheet: has patients data
includes there visit number and visit date and visit operation with his own unique hospital number
each visit recorder it will comes in one row, that means if he has 5 visits the variation will be in row number and date and his visit's number.

2nd sheet: Has table, we enter only patient id or hospital number, and value recorded for his investigation.


what I need:

every time we entering his hospital number at sheet 2 it will be added to sheet 1 at cell (CA column) in his LAST visit row the value 100 (this investigation reading value).


If friend can help me for equation so I can do by equation or simple vba code.

here my equation I added it at CA column, but if the patient has two times visits this equation will change all his previous visited investigations also???!!!

=IF(OR($E3813=$EO$8,$EO$20,$EO$22,$EO$23,$EO$24),1,IF(AND(((TODAY()-($V3813))>=14),E3813=$EO$10),(IFERROR((VLOOKUP(CD3813,HCGNEW,2,0)),0.1)),IF(AND(BK3813>=1,((TODAY()-($V3813))>=12)),(IFERROR((VLOOKUP(CD3813,HCGNEW,2,0)),0.1)),1)))
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
No update


Dear All

Thanks for this great site, it helped me a lot.
I have one problem I need your help or consultation.


I have two sheets with two tables
1st sheet: has patients data
includes there visit number and visit date and visit operation with his own unique hospital number
each visit recorder it will comes in one row, that means if he has 5 visits the variation will be in row number and date and his visit's number.

2nd sheet: Has table, we enter only patient id or hospital number, and value recorded for his investigation.


what I need:

every time we entering his hospital number at sheet 2 it will be added to sheet 1 at cell (CA column) in his LAST visit row the value 100 (this investigation reading value).


If friend can help me for equation so I can do by equation or simple vba code.

here my equation I added it at CA column, but if the patient has two times visits this equation will change all his previous visited investigations also???!!!

=IF(OR($E3813=$EO$8,$EO$20,$EO$22,$EO$23,$EO$24),1,IF(AND(((TODAY()-($V3813))>=14),E3813=$EO$10),(IFERROR((VLOOKUP(CD3813,HCGNEW,2,0)),0.1)),IF(AND(BK3813>=1,((TODAY()-($V3813))>=12)),(IFERROR((VLOOKUP(CD3813,HCGNEW,2,0)),0.1)),1)))[/QUOTE]
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,160
Members
449,209
Latest member
BakerSteve

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